Industry guru Dave Taylor answers free tech support questions about a wide variety of business and technical topics, including blogging, Google AdSense, MySpace, Sony PSP, Apple iPod, Mp3 players, management, Linux, SEO, Mac OS X, Facebook, Twitter, LinkedIn and Microsoft Windows.

What's the Right Way to Link To Pages On My Site?

Here's a topic that should be obvious, but isn't: how should you best code links on your site from page to page? Should you use something like "page two" or "continued..." or "more" with the page filenames as the links? Should you use absolute links that always begin with a leading / (as in "/reviews.html"), should you always use relative links (as in "../reviews.html") or should you use fully qualified links (as in "http://www.free-web-money.com/reviews.html")?


Dave's Answer:

The answer to this question might surprise you! First off, innuendo and rumor aside, Google and other search engines do not care about how your links are coded. I have read on some SEO sites that people suggest that Google "spiders" your site faster if you have absolute or even fully-qualified URLs, but as far as I can ascertain, that's just not true.

So this facet of the question boils down to what's the easiest for you to maintain on your site? A link that allows you to move all the pages around as you might need to reorganize things, or a link that forces you to always live with a specific domain name and directory name? My druthers is unquestionably to use relative links as much as possible, and to always use absolute (though not fully-qualified) links on 404 error pages and other content that kind of floats around on your site.

The only area where full, absolute URLs are a necessity are weblog entries, because your Weblog entries should be generating an RSS feed (learn more about RSS feeds at this RSS info page) which is then read by subscribers in their own applications, so relative links almost always fail. This means that it's a bit more tricky to add links to, say, this entry since this Web site -- free web money -- is built around the Movable Type weblog content management system, but the trade-off of having clickable links in the RSS feed makes it worthwhile.

Let's get back to the main question, then: How should you structure the links between pages on your site?

Well, I used to have links like "home" and similar, but upon reflection realized that they were empty links because the words that are used to link to a site are important and "home" is almost as bad as "welcome" in terms of being completely useless. Instead, all of your interpage links should, as much as possible, reinforce the key words and key phrases that you want to have identify your site (also see Understanding Keyword Density for more about keywords). Instead of a link like:

<a href="index.html">home</a>
therefore, you'll find that you get more value out of simply replacing that link with a link that has the name of the site, the key concept, or similar:
<a href="index.html'>free web money</a>
If you really want some extra credit, think about your filenames too: "index.html" is generic and meaningless, yet your could easily configure your site to have a linked file called "affiliate-secrets.html" and link to that instead:
<a href="affiliate-secrets.html">free web money</a>
Now you're really rocking.

Whether you want to think about filenames or not, it's certainly useful to think about the words that you use to establish the links between your pages. A few minor changes can have a significant impact on your findability and isn't that worth the effort, after all?



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Simpy.

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments
Rather amazingly, there are no comments on this article yet.

I have a lot to say, but ...
Starbucks coffee cup I have a lot to say, and questions of my own for that matter, but most of all I'd like to say thank you for all your efforts on this Web site by buying you a chai!

I do have a comment, now that you mention it!









Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.









Uniblue: Free Virus Scan

Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Join the List!
Join my author info mailing list, where you'll learn about my upcoming books, speaking gigs, and more!


Book Links
© 2002 - 2008 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]