Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Web Development
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 12-18-2007, 01:43 AM   #1
johneva
Member
 
johneva's Avatar
 
Join Date: Dec 2007
Posts: 127
johneva will become famous soon enough
Default A directory URL problem

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
Dont worry fixed.

Last edited 12-18-2007 at 02:25 AM.
johneva is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 12-18-2007, 02:47 AM   #2
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: A directory URL problem

You have to have the same line in your .htaccess in each sub-directory...If you set up a new directory, copy that text into the .htaccess file in the new directory, and it should work for you.
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Your Directory URL is Wanted! clangallacher Link Building 33 01-27-2008 10:24 PM
Small URL ? Shorten Your URL ! - http://TubeURL.com metros Advertise your website 1 10-11-2007 08:35 PM
ADD Your URL to my new directory! vwd34079 Your directory 6 05-15-2007 08:45 PM
Top Directory - NEW directory!!! ADD yor url of site darkol Advertise your website 0 05-10-2007 07:35 PM
Add your url to Directory Frog kentuckyslone Your directory 0 10-10-2006 08:29 AM


All times are GMT. The time now is 07:30 PM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.