Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
A directory URL problem
Old 12-17-2007, 08:44 PM A directory URL problem
johneva's Avatar
Super Talker

Latest Blog Post:
Mercedes- Benz SLK
Posts: 139
Location: Stafford, England
Trades: 0
Hi

I have not done much with directorys and wanted to have bit of a play around just to get used to them aswell as I thought it may help me improve traffic and inbound links for my personal site.

Thing is I had set it up so all requests for pages on my site always went to the www. version of the URL for SEO perpouses, to lower the chance of having some sites link to the www. and some the non www.

I used this short bit of code I got from somebody in my htaccess files.

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^.]+\.co.uk) [NC] 
RewriteRule (.*) http://www.%1/$1 [R=301,L]
But the problem is my directory I just added does not seem to care about this rule, I assume it is cos it has its own htaccess file it simpley does not care what the other one says, so I tryed the short bit of code to find all that does is redirect requests to the main sites index page.

Can anybody help me get my directory to run on the www. version instead of the non www. version please.

Cheers

EDIT
Right now I am confused I have managed to get all the links within the directory pointing to the www. version though changing something in the header.php php which contains all the variables, but when you try to go to http://www.john-eva.co.uk/dir/ it still takes you to the non ww. version and I carnt get my main website to send you to the www. version.

EDIT

Ahwell dont ask me how cos I dont know (To much beer) but its fixed I got it working as I wanted.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

Last edited by johneva; 12-17-2007 at 09:38 PM..
johneva is offline
Reply With Quote
View Public Profile Visit johneva's homepage!
 
 
Register now for full access!
Old 12-17-2007, 09:33 PM Re: A directory URL problem
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
If the directory has it's own .htaccess file then just add the code above to that .htaccess too. You shouldn't need the RewriteEngine on again.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 12-17-2007, 09:39 PM Re: A directory URL problem
johneva's Avatar
Super Talker

Latest Blog Post:
Mercedes- Benz SLK
Posts: 139
Location: Stafford, England
Trades: 0
Na that did not seem to work as I tryed that, doing that just redirected it back to the index page of my main site.

Fixed now cheers for your time anyways.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
johneva is offline
Reply With Quote
View Public Profile Visit johneva's homepage!
 
Old 12-18-2007, 12:09 AM Re: A directory URL problem
dvduval's Avatar
Ultra Talker

Posts: 312
Trades: 0
I see you are running skalinks. Have you asked them about this?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
dvduval is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to A directory URL problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47311 seconds with 12 queries