Hello,
I am asking for some help on how to rewrite this
[
mysite.com...] to [
mysite.com...]
The variable "a" is renamed to "id" and its value "v1" is dynamic
The rest of the query string will be suppressed.
My approach is
RewriteCond %{QUERY_STRING} ^a=(.+)
RewriteRule ^script\.php$ newscript.php?id=%1 [R=301,L]
(.+) contents all query string after "a=" and the resulting query string is the same as the old one but "id" instead "a" as expected.
How to keep ony the first var?
Thank you n advance