Welcome to WebmasterWorld Guest from 54.196.35.120

Forum Moderators: Robert Charlton & aakk9999 & andy langton & goodroi

Message Too Old, No Replies

http://www.domain.com/ = www.domain.com/?

     
3:21 pm on Oct 7, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Jan 1, 2003
posts:302
votes: 0


Hey.. for those of you who might know..

When switching from /index.html pointing to www.domain.com/ pointing is it also ok to use "http://www.domain.com" (so basically adding the http:// part.

Thanks,
Oak

3:58 pm on Oct 7, 2006 (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


If you link to just href="www.domain.com" then Google will treat that as if it were just a page name on your site. You need to add the http:// part to clarify that what follows is the domain name. Don't forget to add the trailing "/" on to the URL too.
4:19 pm on Oct 7, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:July 7, 2005
posts:98
votes: 0


Don't forget to add the trailing "/" on to the URL too.

Are you sure?

afaik, <A HREF="http://www.domain.com"> is the same as <A HREF="http://www.domain.com/">

isn't it?

4:38 pm on Oct 7, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Jan 1, 2003
posts:302
votes: 0


Thank G1.. I meant to actually write [domain.com...] with the ending slash.

As for not using the www.domain.com/ alone, my server for some reason takes the link to [domain.com...]

That is why I am adding the "http://" to the start.

I'll keep readers posted if it makes any sig. changes to my status.

5:05 pm on Oct 7, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 20, 2004
posts:703
votes: 0


Have always wondered what the significance of the trailing slash is? What happens if not used? Should the ending / also be used in SE submissions?
5:08 pm on Oct 7, 2006 (gmt 0)

New User

10+ Year Member

joined:Nov 20, 2005
posts:10
votes: 0


As for not using the www.domain.com/ alone, my server for some reason takes the link to [domain.com...]

You need a starting slash to indicate that the URL with the domain name, otherwise it is resolved as a relative path--a directory within the current directory. In other words

"/" = "http://www.domain.com/"
"www.domain.com/" = "http://current_domain/current_dir/www.domain.com/"

5:09 pm on Oct 7, 2006 (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


The trailing / is of more importance when linking to a folder rather than to the root of a site, but it is a good habit to get into.

If you link to /folder there will be an internal redirect from /folder to /folder/ in most cases, and sometimes [webmasterworld.com] a double [webmasterworld.com] redirect [webmasterworld.com] instead [webmasterworld.com].

5:45 pm on Oct 7, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Jan 1, 2003
posts:302
votes: 0


Thanks Kenny, G1
5:50 pm on Oct 7, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 3, 2002
posts:157
votes: 0


I've never added / to the end of my urls, and don't see why it would help. Just seems like a bunch of extra keystrokes.
5:54 pm on Oct 7, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Jan 1, 2003
posts:302
votes: 0


Well it's helped a few webmasters that have been hit with refreshes.. when you haven't done anything wrong and have been "penalized" for following google guidelines with no tricks.. then it's worth trying new simple things that have helped others.
6:01 pm on Oct 7, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:July 7, 2005
posts:98
votes: 0


Thanks for the brilliant posts g1smd. I'd like to add that the trailing slash is very important when linking to a folder name because in "http://www.domain.com/something", "something" can either be a filename or a directory so the trailing slash is needed here to say that it's a directory. On the other hand [domain.com...] is less ambigious because it's always the root directory (besides it's not possible to define a redirection from [domain.com...] to [domain.com...] because it's the same : REQUEST_URI equals "/" on both cases so forcing a 301/302 redirection leads to an infinite loop). However it's always a good habit to add the trailing slash like you said :D
6:17 pm on Oct 7, 2006 (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


>> I've never added / to the end of my urls, and don't see why it would help. <<

Check out the four threads that I linked to in my post above, and all will become clear. I assume that you haven't yet read them.