Duplicate Content Help
-
seomoz tool gives me back duplicate content on both these URL's
http://www.mydomain.com/football-teams/
http://www.mydomain.com/football-teams/index.php
I want to use http://www.mydomain.com/football-teams/ as this just look nice & clean.
What would be best practice to fix this issue?
Kind Regards
Eddie
-
Check your pages for links that access both. you musthave a link to http://www.mydomain.com/football-teams/index.php in the site somewhere
-
Hi Alan,
Thanks for the quick response.
Yes i have noticed that there is 1 internal link linking to:
http://www.mydomain.com/football-teams/index.php D'OH!
Anyway, i will get that fixed, thanks for the suggestion.
I was wondering, lets say there was an external link linking to http://www.mydomain.com/football-teams/index.php
Is it possible it re-directs to http://www.mydomain.com/football-teams/ without using a 301, as i don't think its practical to do a 301 on all these URL's?
Kind Regards
-
Depends how your site is structured. I would highly recommend a 301 from index.php to / but either all your pages need to be named index.php for a .htaccess to work or you would need some meticulous work.
-
Yes you can, i build my sites in MVC now days where you have SEO freindly URL's with no file names, but what I used to do was change the default file name to somthing no one will ever guess, say seo.aspx or seo.php. so no one will know the file name and not create a link to the filename. Probably a bit overkill, but I like to future proof things
-
Hi Highland,
What is the code to do a 301 on all pages that has index.php to rewrite to /
Kind Regards
-
It would only be the default file name that is the problem as its the only one can be accesed by /folderonly/
-
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^./index.php
RewriteRule ^(.)index.php$ http://www.yoursite.com/$1 [R=301,L]