I want /category?id=2 to redirect to /index?cat=2 in .htaccess
I have tried with the following code
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^category?id=$ /index.php?cat=$1 [L]
But nothing happens. I understand that there is something wrong with my code. Anyone know what I should change?
1