Okay, maybe I wasn't very clear above.
Let's try again.
I need this url: https://my_shopping_store.com/home/purchase.php?afl=1183&rs=2&pid=9&cid=BkAG8ALwBjAG8AbQBwAHUAdABlAHIALQBzAGg&lid=AEMAbwBtAHAAdQB0AGUAcgAgAFMAaABvAHAAIABvAH
to be redirected to the same url and just append this string "&promocode=U01Ng1dlzqVeHjuROylCeMXT" to it's tail.
As as said in previous post, only "rs", "cid" and "lid" values are changing.
I also tried this:
if ($request_uri ~* ".*/home/purchase.php\?afl=1659\&rs=[0-9]\&pid=9\&cid=([0-9][a-z])\&lid=([0-9][a-z]$") {
set $args "";
rewrite ^.*$
https://my-domain.com/home/purchase.php?afl=1659&rs=&pid=9&cid=&lid=&promocode=U01Ng1dlzqVeHjuROylCeMXT permanent;
}
Unfortunately, isn't working.
Any ideas?