.htaccess URL rewrite with no query string variables
I have to rewrite the following URLs, can someone please suggest the contents of a .htaccess file that will do this.
For example:
example.com/retrieve_cat.php?subcat=364&c=134
needs t开发者_如何学编程o look like:
example.com/category/subcategory/
Is it possible to rewrite this?
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteBase /
RewriteRule ^retrieve_cat.php?subcat=(.*)&c=(.*) $2/$1/
精彩评论