Duplicate page content - index.html
-
Roger is reporting duplicate page content for my domain name and www.mydomain name/index.html.
Example:
www.just-insulation.com
www.just-insulation.com/index.htmlWhat am I doing wrongly, please?
-
Hi
I added a Canonical tag into the header of the of my index page, which seem to do the trick for me.
href="yourdomain.co.uk" rel="canonical">
I also placed a redirect on http://yourdomain.co.uk to http://www.yourdomain.co.uk by changing my htaccess
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
^^^ be careful with this as it could bring your site down. This works on my server so please double check before implementing.
-
Thank you. I shall try out your suggestion.
-
Seomoz crawler finds only links that are directed linked on your site. If your starting url was www.just-insulation.com then somewhere on your site you are linking back to the homepage with the url www.just-insulation.com/index.html
Fix that and it won't show up. While you can rel-canonical the page and htaccess redirect it I think it is cleaner to fix it at the source.
-
Thanks, for what looks like an easy fix.