+ Reply to Thread
Results 1 to 4 of 4

 

Thread: 301 Redirect

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Jan 2006
    Location
    Sudbury UK
    Posts
    271
    Thanks
    0
    Thanked 0 Times in 0 Posts


    Hi

    I have setup a 301 redirect on my site so that clickon-computer-services.co.uk redirects to www.clickon-computer-services.co.uk.

    This is working fine but can anybody please tell me how to make the index.html file redirect to www.clickon-computer-services.co.uk ??

    Thanks

    Jason

  2. #2
    Keith's Avatar
    Moderator

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Richmond North Yorkshire
    Posts
    2,540
    Thanks
    172
    Thanked 119 Times in 83 Posts
    Keith ~ My Blog general ramblings. Internet Marketing Blogs UK all the blogs together in one place (pm for inclusion)

  3. #3
    Registered User

    Status
    Offline
    Join Date
    Jan 2006
    Location
    Sudbury UK
    Posts
    271
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Fantastic, cheers for that Keith

  4. #4
    Registered User

    Status
    Offline
    Join Date
    Jan 2006
    Location
    Sudbury UK
    Posts
    271
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Have a problem with 301 redirect on some domains??

    I've entered the following into .htaccess file:

    RewriteCond %{http_host} ^clickon-computer-services.co.uk [nc]
    RewriteRule ^(.*)$ http://www.clickon-computer-services.co.uk/$1 [r=301,nc]

    RewriteCond %{http_host} ^clickon-computer-services.co.uk/index.html [nc]
    RewriteRule ^(.*)$ http://www.clickon-computer-services.co.uk/$1 [r=301,nc]

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
    RewriteRule ^index\.html$ http://www.clickon-computer-services.co.uk/ [R=301,L]

    For this domain it works fine. non www redirects to www, non www with index.html redirects to www with no index.html - all ok

    I have it set up on various other domains and all work ok apart from 2.

    For the 2 that don't, typing in for example hom-underwear.co.uk/index.html brings up a windows error 'Windows cannot find hom-underwear.co.uk/index.html. Check the spelling and try again'.

    Would anybody have any ideas why this is? I've checked the lines in each .htaccess file and they are identical ??

    Cheers

    Jason

+ Reply to Thread


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How many 301 redirects is too many?
    By smn2 in forum Programming
    Replies: 2
    Last Post: 25-10-06, 06:09 PM
  2. 302 redirect help, please.
    By monkeyman in forum Programming
    Replies: 4
    Last Post: 22-12-05, 04:56 PM
  3. 301 redirects?
    By madstock in forum Programming
    Replies: 5
    Last Post: 06-09-04, 08:49 PM
  4. Permanent redirects (301) in Google
    By darrenw in forum Programming
    Replies: 3
    Last Post: 17-04-04, 09:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2