.htaccess RewriteRule Examples
Here are some examples of rewriteRules that i found online, I am always looking for this, so I decided to save them here. Thanks to brontobytes for the examples. Example 1 Original URL:http://www.domain.com/product.php?id=15 Rewritten URL:http://www.domain.com/15.php Rule for .htaccess:RewriteEngine OnRewriteRule ^([^/]*)\.php$ /product.php?id=$1 [L] Example 2 Original URL:http://www.domain.com/product.php?id=15 Rewritten URL:http://www.domain.com/product15.php Rule for .htaccess:RewriteEngine OnRewriteRule ^product([^/]*)\.php$ /product.php?id=$1 [L]… read more »