Static URLs are known to be better than dynamic URLs for a number of reasons:
1. Static URLs typically rank better in search engines.
2. Search engines are known to index the content of dynamic pages much more slowly than that of static pages.
3. Static URLs look friendlier to end users.
Example of a dynamic URL
http://www.yourdomain.com/profile.php?mode=view&u=7
This tool helps you convert dynamic URLs into static looking HTML URLs.
Examples of the above dynamic URL re-written using this tool:
http://www.yourdomain.com/profile-mode-view-u-7.html
or
http://www.yourdomain.com/profile/mode/view/u/7/
Method 1 - Single Page URL
Dynamically Generated URL
http://www.yourdomain.com/profile-mode-[VALUE]-u-[VALUE].html
After converting your dynamic URL
http://www.yourdomain.com/profile-mode-view-u-7.html
Create a .htaccess file with the code below
The .htaccess file needs to be placed in http://www.yourdomain.com/
[code]
Options +FollowSymLinks
RewriteEngine on
RewriteRule profile-mode-(.*)-u-(.*)\.html$ profile.php?mode=$1&u=$2
[/code]
Method 2 - Directory Type URL Dynamically Generated URL
http://www.yourdomain.com/profile/mode/[VALUE]/u/[VALUE]/
After converting your dynamic URL
http://www.yourdomain.com/profile/mode/view/u/7/
Create a .htaccess file with the code below
The .htaccess file needs to be placed in http://www.yourdomain.com/
[code]
Options +FollowSymLinks
RewriteEngine on
RewriteRule profile/mode/(.*)/u/(.*)/ profile.php?mode=$1&u=$2
[/code]
Last Updated: 2007-08-08 03:33:30
Get SEO certified with a competent SEO expert at eVenzia Technologies now! Read more about SEO Certification.
Become a web guru with our XHTML, SEO, PHP & MYSQL training courses! Availability of levels, approaches and successful results guaranteed! Suitable for personal and business use.