I would like to RewriteRule for a Specific query attribute
e.g.
https://website.com/shop/?req=cosmetics
to:
https://website.com/shop/cosmetics
I achieved that by doing:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^shop/(.+)$ shop/?req=$1 [L,QSA]
My problem is that this will replace any query attribute...
What i'm looking for is to perform the RewriteRule explicit on '?req=' and let any other attr e.g. '?foo=' just to pass and execute.
I know that this is possible with RewriteCond %{QUERY_STRING} but i can't make it work...
Thanks
/shop/<anything>to/shop/?req=<anything>. What change do you want in this rewrite behavior?/shop/<anything>to/shop/?req=<anything>. If you enter in browser/shop/?foo=<anything>then current rule isn't doing anything.