Welcome to WebmasterWorld Guest from 54.147.189.54

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Trailing Slash vs. Index.html

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 12, 2001
posts:1150
votes: 0


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 Sept 27, 2012 (gmt 0)

Administrator

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

joined:Aug 10, 2004
posts:10542
votes: 8


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 Sept 27, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 12, 2001
posts:1150
votes: 0


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

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 0


Never link to named index file.

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

Senior Member from US 

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

joined:Apr 9, 2011
posts:12702
votes: 244


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 Sept 27, 2012 (gmt 0)

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 0


another three variants...

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