URL Rewriting
Static URLs are known to be better than dynamic URLs for a number of reasons:
- Static URLs typically rank better in search engines.
- Search engines are known to index the content of dynamic pages much more slowly than that of static pages.
- Static URLs look friendlier to end users.
Example of a dynamic URL
http://www.yourdomain.com/profile.php?mode=view&u=7
Examples of the above dynamic URL re-written :
http://www.yourdomain.com/profile-mode-view-u-7.html
or
http://www.yourdomain.com/profile/mode/view/u/7/
Note
You will need to create a file called “.htaccess” and paste the code generated into it. Once you have created the .htacess file simply copy it into your web directory.
URL rewriting of this type will work ONLY if you are hosted with Apache Server.
For Windows Servers;
There are isapi rewrites like http://www.isapirewrite.com I will explain how to use isapi rewrite later.
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.










Comments
No comments yet.
Leave a comment