Duplicate Content Home Page
-
Hello,
I am getting Duplicate Content warning from SEOMoz for my home page:
http://www.teacherprose.com/index html
I tried code below in .htaccess:
redirect 301 /index.html http://www.teacherprose.com
This caused error "too many re-directs" in browser
Any thoughts?
Thank You,
Eric
-
Options +FollowSymLinks
RewriteEngine onRewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]*/)index.html?.\ HTTP/
RewriteRule ^(([^/]/))index.html?$ http://www.example.com/$1? [R=301,L]
Try this , which CMS ur using?
-
Wissam,
Thanks for response. I'm using Dreamweaver CS4 with a Godaddy shared hosting account. Do you mean to insert code above into .htaccess or into page code?
Thank You,
Eric
-
Ok
Insert it in htaccess
-
yeah into HTaccess, did it work?
-
Hello,
I think it worked! Thank you Wissam! I really appreciate your assistance.
Best,
Eric
-
Wissam,
Code worked in teacherprose.com but not in federalprose.com. Not sure why this is true.
Thanks,
Eric
-
Eric,
I found out also that you didnt choose what canonical version you want for your website.
means that ur site can be accessed threw www version and non-www version
in order to fix that
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]place it under rewriteengine on .
I just checked federalprose and its working
-
Wissam,
Merci Beaucoup!
Eric
-
De rien cher ami
