homepage Welcome to WebmasterWorld Guest from
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?

 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>




 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.


 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>


 12:43 pm on Apr 17, 2009 (gmt 0)

what's with the trailing slash ?


 12:44 pm on Apr 17, 2009 (gmt 0)

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


 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>
<a href="http://widgets.example.com">home</a>

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

will return to

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