Welcome to WebmasterWorld Guest from 54.205.88.118

Forum Moderators: Ocean10000 & incrediBILL & phranque

Trailing Slash vs. Index.html

   
12:09 am on Sep 27, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Geez, after 17 years on the net I feel like I should know this one, but I never really considered it before...

Will Google see these two urls as the same location or different?

www.example.com/dir/dir/
www.example.com/dir/dir/index.html
3:49 am on Sep 27, 2012 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



those are different urls and i've seen examples of both or the wrong one being indexed.
requests for the second url should be redirected to the first url using a 301 status code.
also your default directory index document setting should be configured to use index.html.
4:55 am on Sep 27, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks much, phranque.
5:36 am on Sep 27, 2012 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Never link to named index file.

Link to href="/" or to href="/folder/"
6:01 am on Sep 27, 2012 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



Will Google see these two urls as the same location or different?

www.example.com/dir/dir/
www.example.com/dir/dir/index.html

It gets better :) Unless you've given instructions to the contrary, those can end up as four URLs:

www.example.com/dir/dir/
example.com/dir/dir/
www.example.com/dir/dir/index.html
example.com/dir/dir/index.html
7:47 am on Sep 27, 2012 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



another three variants...

www.example.com./dir/dir/
www.example.com:80/dir/dir/
www.example.com.:80/dir/dir/
 

Featured Threads

Hot Threads This Week

Hot Threads This Month