It works?
RewriteCond %{QUERY_STRING} ^.+$
RewriteCond %{QUERY_STRING} !^id=
RewriteRule ^(.*)$ $1?%1 [R=301,L]
Tip. During testing, use 302 redirects instead of 301, since 301 redirects are stored in browsers. You can finally switch to classic 301 when you are done testing.
source
share