Welcome to WebmasterWorld Guest from 220.127.116.11
- There is no default page set in Google Analytics
- Home.php receives 15.36% of the traffic
- / receives 13.76% of the traffice
- Index.php receives a small amount of traffic
I could presume / is home.php, but I'm not 100% sure. If I decide to set the default page as home.php is a 301 redirect from index.php to home.php the way to go?
Thanks in advance.
Also, I assumed that you were talking about Google traffic with those percentages - am I correct?
- Make it a policy never to link to an directory index document (e.g. index.htm, default.asp and so on). Always link to the full host name (http://www.example.com/) or the root of the directory (http://www.example.com/directory/)
- Permanently redirect (i.e. with an HTTP 301 status code) any requests for duplicate URLs to a single destination - in this case redirect /home.php and/or /index.php to /
The second is slightly more difficult to achieve technically, but if you're on Apache, you'll find a number of references to htaccess-based fixes courtesy of the apache forum [webmasterworld.com], e.g. removing index.php from 301 redirect [webmasterworld.com].
The easy way to check is to visit all of the URLs directly, and compare the content. Otherwise, you most likely have a list of default directory indexes specified in an htaccess file or set by your web hosting company.
The site could well have external inbounds to a large combination of urls... to "/", to "/home.php" and to "/index.php"... with or without the www. It's best to use proper redirects to get the links redirected and the urls all canonicalized.
I don't know that we're sure that Webmaster Tools is going to assign proper linking credit to all the variants. A proper redirect will.
There's further discussion of canonical issues in this thread, which you can find in the Duplicate Content section of Hot Topics, always pinned to the top of this forum's home page....
Canonical URL Issues [webmasterworld.com] - many ways to introduce duplicates
Thanks for the suggestions and help everybody.
[edited by: Robert_Charlton at 9:42 pm (utc) on June 20, 2009]
[edit reason] changed to example.com - it can never be owned [/edit]
Change all links that currently point to that filename to instead point to "/".
Redirect requests for that filename in the URL to instead request "/".
Is the "other" filename serving the same content as the above?
If so, then redirect requests for that filename to "/" too.
If it serves different content, then leave that one alone.