homepage Welcome to WebmasterWorld Guest from 54.166.84.82
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
links to home page. which is best?
junglesnail

5+ Year Member



 
Msg#: 3894012 posted 8:11 pm on Apr 16, 2009 (gmt 0)

Greetings all,

I was hoping you guys can help me with this.

Which is the best way to link to your home page :

Is it best to use internal links <a href ="index.php" ></a> or anchors like <a href="http://www.example.com"> </a>

Thanks.

 

Noton

5+ Year Member



 
Msg#: 3894012 posted 8:24 pm on Apr 16, 2009 (gmt 0)

Its best to use the absolute version of the URL:
<a href="http://www.example.com"> </a>

This is because the spiders will always properly index your homepage as www.example.com and won't have problems if other sub-domains or https types are used by mistake.

wheelie34

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 3894012 posted 12:38 pm on Apr 17, 2009 (gmt 0)

Agree, absolute is best but don't forget that trailing slash

<a href="http://www.example.com/"> </a>

junglesnail

5+ Year Member



 
Msg#: 3894012 posted 12:43 pm on Apr 17, 2009 (gmt 0)

what's with the trailing slash ?

junglesnail

5+ Year Member



 
Msg#: 3894012 posted 12:44 pm on Apr 17, 2009 (gmt 0)

i mean what about the trailing slash ? why is it neccessary?

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3894012 posted 6:01 pm on Apr 17, 2009 (gmt 0)

Unless you have specific reasons for doing so, the full url is just overhead. Not needed, not needed at all. Any search engine will index

<a href="/">home</a>

as http://www.example.com/

"Confused with subdomain" I just don't understand. There is a distinct difference between
<a href="/">home</a>
and
<a href="http://widgets.example.com">home</a>

However, FROM a subdomain,
<a href="/">widgets</a>

will return to
http://widgets.example.com

Which is actually an ease of maintenance issue, you can move the page from the domain to the subdomain without changing links.

But the search engines will still see it as http://widgets.example.com.

Typical examples of where you want to use the FULL url:

<a href="/">home</a>
<a href="https://example.com/login/">Log in</a>

From secure pages, to get OFF https and allow the site to run faster,

<a href="http://example.com/">home</a>
<a href="/login">Log in</a>

[edited by: phranque at 7:57 am (utc) on April 22, 2009]
[edit reason] unlinked urls [/edit]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved