Nginx redirect quey string to url

AjaySawant nginx-forum at
Thu Jun 29 19:20:32 UTC 2017

I am trying to redirect a query string to url and I am using like this but
it is somehow not working. Can somebody help?

rewrite ^/abc/xyz/def.php?Id=13 permanent;
rewrite ^/abc/xyz/def.php?Id=14 permanent;

Posted at Nginx Forum:,275218,275218#msg-275218

More information about the nginx mailing list