I have a page
root/pages/?id=webdesign
and I want to translate it into something like
root/pages/webdesign
I have a page
root/pages/?id=webdesign
and I want to translate it into something like
root/pages/webdesign
To keep the prefix and replace the last part with a query string
RewriteCond %{QUERY_STRING} !^id=
RewriteRule ^root/pages/(.+)$ /root/pages/?id=$1 [L]
The RewriteCond
is needed to prevent a rewrite loop.