Thu, 20 Mar 2008 18:36:00 CET by SmoothStep
Firstly one needs to understand the difference between static and dynamic page names (URLs).
Dynamic Pages
Dynamic URLs are designed to send variables to a website page so it could perform a specific task that usually generates dynamic results. Dynamic page names contain a single question mark that separates name from variables sent. Example name "product.php?a=1&b=2" would pass variable a=2 and b=2 to "product.php" script file that would generate some response.
Such technology is very useful for web application programmers but it down-performs in search engine listings. Search engines prefer static pages that are considered to change less often over time.
Static Pages
To explain static URL prototype we are going to use two examples: "product.html" and "product.php".
Classic static URL example consists of name and extension. Page extension indicates technology ("html" says that page uses Hypertext Transfer Protocol) or a programming language ("php" extension indicates that page is generated on the server using PHP script).
Many consider that pages with extension other than "htm" or "html" are worth more than those with server side scripting language indicators (like PHP, ASP and others).
If you will search for "search engine marketing" in Google and look at URLs of first 10 web sites, you will notice that many extensions are present. This indicates that search engines don't really care about extension used as long as the page represents useful information for the reader.
User friendly URLs
Friendly page names are static URLs with no extension at all. Such URLs are very useful for users as they are easy to remember (web-design, contact, shop etc). Extension-less choice also protects page names from becoming obsolete if different web technology is going to be used to display them in the future. Such names can be achieved by using URL rewriting technology.
URL rewriting technology
Rewrite engine is a special software component on the server that modifies domain names before they are processed by scripting language. It is used to convert dynamic URLs to static ones.
Dynamic page:
product.php?type=computer&subtype=portable&id=34
Can be changed to static page:
product/type/computer/subtype/portable/id/34
Or:
product/computer/portable/34.html
Or simply:
product/computer/portable/34
Rewrite engine is very helpful to maintain static URLs for complex database driven websites, where parameters have to be sent to display products. Dynamic pages are usually not cached by web browsers so by using rewrite technology one also increases overall web site performance.
Apache web servers have built-in component called "mod_rewrite" which allows setting up rewrite engine by uploading RegExp (Regular Expression) rules to ".htaccess" file. For those who use Windows based servers - Free IconicIsapiRewrite plug-in can be installed to achieve rewriting.
Here you can share your thoughts with us by posting a question/comment; also rate this article by clicking on one of five stars below. Your e-mail will not be shown to protect your privacy. Required fields are marked with *
Zola from Canada
Hey this is a great article,
These are the little things that set sites apart. Will definitely explore the topic more.
zahid from usa
it's great.
i m using in my blog as well.
http://www.zahipedia.com
bebo2001 from united states
cool, keep that in mind