Home > Boost Your Rank > Flat Links

Flat Links

12th February, 2009

All the way back in my first article, Where to Start, I talked about how registering a domain name containing your website’s keywords is important. Well having the keywords in the complete URL to the page is also helpful.

The URL of the page you’re on now for example: http://www.cashsblog.com/2009/01/flat-links/. It contains to year, month, then title of the article. This can give search engines a better idea of what the page is about. Have you ever seen URLs like http://www.cashsblog.com?read_article.php?year=2009&month=01&key=120&title=flat-links and thought “What the hell does that mean?”

Why would you want “Flat Links?”

These kinds of URLs are easier for the person who created the page. The URL tells the page exactly what article it needs from the database and the variable key only needs a quick is_numeric check. But the problem is, sometimes search engine bots can make as much sense out of them as a human (not very much). A search engine bot might not be able to (or might choose not to) follow a link with too many GET variables in it.

Having a descriptive URL not only gives the user more information on where they are, but search engines too. If your URL is descriptive, and even better, contains keywords relating to the page, it’s going to get a better search engine rank.

How does it work?

So what do you do about it? You can use a little Apache web server trick to make what are called flat links.

Basically, you can set up redirects that don’t actually redirect the browser. Apache actually translates the URL without the user ever knowing.

So what’s actually happening, when your browser requests something like this article: http://www.cashsblog.com/2009/01/flat-links/ is that Apache detects the pattern /(4 digit number)/(2 digit number)/(article title)/ and translates that to index.php?year=(4 digit number)&month=(2 digit number)&title=(article title), ready for index.php to use those variables to get the correct article from the database.

(Wordpress actually uses another technique, but we’re using this pages URL for this example.)

So you want to find out how to do all this?

Check out: more .htaccess tips and tricks..

(This is actually the toutorial I read to learn how to do this.)

Like this article? Share and bookmark it:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • MySpace
  • Spurl
  • StumbleUpon
  • Technorati
  • Yahoo! Buzz
  • Reddit

Related posts:

cash Boost Your Rank , , , , , , ,

  1. John
    February 19th, 2009 at 13:39 | #1

    I really learned a lot from this very informative article! Keep up the great work Cash!