URL rewriting and search engine optimization

Most dynamic search engines have a problem with dynamic pages indexing due to complex structured URL.

For example, a dynamic address such as

page.php?cat=news&cod=5

is much more difficult to index than a static one such as

page.html

More than a strict rule, it is a moment of confusion spiders tend to experience when in a page address a character like ‘&’, ‘?’ or ‘=’ is found.

Therefore, pages with a normal address are indexed more and more often than dynamic ones. In order to get round this inconvenience, there is a technique called url rewriting, that is getting the server to rewrite dynamic addresses as static.

The way this technique is put into practice varies depending on systems technology; its accomplishment is not easy, it requires time, care and a broad experience and, when handling extensive portals, may call for a well defined project planning.

In the examples we will deal with Apache/php technology. In order to carry out the task, we need use apache module “mod_rewrite” which allows the replacement of user inputted page addresses with new ones, calculated with a Regular Expression (Regex) based syntax. Let’s pass over Regex syntax, actually rather tricky and thorny (should you want to study it in detail please refer to http://www.evolt.org/article/rating/20/22700/.) Keeping our examples as simple as possible, suppose we need making

http://www.ikaro.net/articoli/articolo.php?file_name=url_rewriting
into
http://www.ikaro.net/articoli/cnt/url_rewriting.html

Following mod_rewriting configuration should be used

RewriteEngine on RewriteRule /articoli/cnt/([^/]+).html /articoli/articolo.php?file_name=$1 [L]

First row activates rewriting module, the second one replaces the dynamic address on the right with a static address using “filename” parameter value to name the page (which actually does not exist).

The two lines can be inserted:

  • In a .htacces file in the relevant directory (the one in which the function needs being activated)
  • In the httpd.conf configuration file (in this case super-user privileges are needed)

Please note that the static address page does not exist, it is simply an alias recognized by the server so that engines see a “normal” page instead of a dynamic one and index it as usual.

Related Posts

by Dan Di Gregorio | 13 July 2009 | Problogging, Tech

Tags | , ,

Leave a Reply

Comments

affiliate promotion em How To Increase AdSense Revenue With AdsBlackList
Oh, so unexpected, so surprise! Very touching, so well written and I have some perception, learning very much. Thank you ...
 
Samsung Intercept em How To Surf The Internet Without Any Ads: foolDNS
Is there a summary of what is different between the Intercept at Android 2.1 and the Moment at Android 2.1? ...
 
What really happens if you fail to update your blog for weeks? : BloWide.com em What Really Happens If You Stop Updating Your Blog For Weeks
[...] on the effects of missing in action on the blogsophere. Below are the conclusion of  the test by Dan ...
 
Tweets that mention The 5 BIGGEST Lies About Life, Career and Job -- Topsy.com em The 5 BIGGEST Lies About Life, Career and Job
[...] This post was mentioned on Twitter by ikaro. ikaro said: The 5 BIGGEST Lies About Life, Career and Job ...
 
Dan Di Gregorio em Nokia N96: Review and Comparison with N95
I dislike the N96 os N97. Keyboard is tiny, screen is little as well. Try to move on Samsung. Do ...
 
GREGORIA em GizmoCall Free VoIP Calls to Mobiles and Landlines Worldwide
easy to connect on both landlines and mobiles
 
Gunding em Email Marketing: How To Manage Direct Mail With Wordpress
Great site!!! Bookmarked.
 
roza em Nokia N96: Review and Comparison with N95
actually .. i owned n 95.... but it was theft.... i liked that mobile..a lot... so now as i need to ...
 

Categories

Languages

Blog Directory & Search engine
My Zimbio

Hot news!

Ooma is an interesting VoIP service for US customers that allows free US calls using an existing home phone.

This is another addition to our ongoing series of tutorials and case studies on landing pages that work.

There is an infinite amount of things you can say, but only so many ideas to pull from. It?s hard to keep people entertained with your tweets.

Fring, the app that means to let anyone make free Skype, Google Talk, MSN, or SIP calls from any phone, has hit Android.

Twitter is rolling out improvements to its Lists feature, starting with one that many Twitter users have been asking for: descriptions.

If you ask most Firefox fans the main reason they won?t switch to Chrome, a good majority of them will probably cite its lack of extensions. But that might change, because Chrome extensions are coming ? perhaps soon

In addition to measuring authority on Twitter, the company is releasing a new, intelligent Twitter List engine that identifies and ranks the top 25 influencers for any topic of interest and produces a new, qualified, and ranked list as a result.

Two technologies called DHT and PEX enable trackerless BitTorrent; in the simplest of terms, the BitTorrent technology has evolved to the point where trackers are no longer necessary for operation. Thus, the folks over at The Pirate Bay have decided to permanently shut down the Pirate Bay tracker.

Google Sites, which launched a little under two years ago, have given businesses and consumers a way to quickly build their own websites with no HTML knowledge required, making it relatively easy for anyone without a technical background to build a simple website.

MMS support has made it way into Twitter? if you?re a customer of Orange UK, a mobile network provider.

Related Sites