mod_rewrite is one of the best module I know in SEO point of view. mod_rewrite comes with apache web server .Also there are some alternatives for IIS .URL rewire is easy if you do it in a proper way.

Earlier I used to create static html pages one by one . It is time consuming stuff. When I need to change my page format or page footer ,I had to change all my pages one by one.

So I’ve decided to do database driven site. For that I had to change my html pages to php .Page contents are in mysql database. I have developed a template php page. And the data feed from Mysql database.

Now anytime I can change my site design by modifying the php template.Now the issue is page urls. It goes like this ..

www.mydomain.com/template.php?id=12&cat=java

These dynamic url’s are not recommend in SEO. So I researched about this issue and how others overcome this. Then I found this mod_rewrite solution.

To implement this you need to have apache as the web server . Even most shared hosting companies provid this module. So you need only to upload .htaccess file which contains url rewrite rules.

here is a sample .htaccess file

Options +FollowSymLinks
RewriteEngine on
RewriteRule category/(.*)/(.*)-(.*).html /category.php?cat=$1&set=$2&sort=$3
RewriteRule product/(.*)/(.*)/$ /product.php?id=$1&tab=$2
RewriteRule categoryresults(.*)/(.*).html?qry=(.*) /categoryresults.php?cat=$1&set=$2qry=$3