Has my 301 home page really worked?
-
Greetings from 53° 57′ 30″ N, 1° 4′ 49″ W otherwise known as York

I know a site i'm working on has two versions of the home page e.g.
http://www.davidclick.com & http://www.davidclick.com/index.htmThis morning I delved into the bowels of the ht access file and this is what happened...
Firstly i added redirect 301 /index.htm http://www.davidclick.com nope that broke everything
I then amended to redirect 301 /index http://www.davidclick.comCan anyone re assure me ive done the right thing in terms of resolveing my home page canonical problem?
Thanks in advance

-
You can quite easily test it just vist the url you would like to redirect so in the case above 'http://www.davidclick.com/index.htm'. Does it redirect to http://www.davidclick.com, nope so at the moment the redirect is not working.
-
Hi,
I can confirm that your 301 redirect is not working..
However, because http://www.davidclick.com/index.htm has a rel="canonical" tag pointing to http://www.davidclick.com/ its not causing any duplication issues.
However, I would recommend you get the index page redirected to the correct home page anyway.
Regards
Greg
-
`Use the below line in your Htaccess file: Redirect /index.htm` http://www.davidclick.com/ -
Thanks for replies but...
"Why is my 301 redirect instruction not working?" Right now ive got this in my ht access file:
301 /index http://www.davidclick.comWhat should it be?
-
Because /index and /index.htm are two different pages if you look /index is being redirected not /inedx.htm
-
If you type davidclick.com/index in the address bar it does redirect to davidclick.com.
Like Kyle said just do the same thing as you did for /index but this time have index.htm.
-
HI Kyle,
I've just added amended ht access file as suggested and i get:
"Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
Just to re-iterate i did add this line:
redirect 301 /index.htm http://www.davidclick.com & the whole site wouldnt display (Ive since removed it)I'm confused. me thinks I'll contact 123 reg

-
http://www.seomoz.org/q/how-do-i-redirect-index-html-to-the-root
Hope this helps.