Thanks Richard for replying but somehow this is not working. I see it is
being redirected to http://www.example.com/fhu but not to
http://www.example.com/fhu/foo and http://www.example.com/fhu/bar. As you
mentioned I have matched the case exactly.
Posted at Nginx Forum:
https://forum.nginx.org/re
rewrite and location matching do not include query strings. As a quick
workaround, I believe you could do something like this:
if ($request_uri = "/abc/xyz/def.php?Id=13") { return 301 "
http://www.example.com/fhu/foo";; }
Be aware that this matches the request exactly - query string parameters
m
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 http://www.example.com/fhu/foo permanent;
rewrite ^/abc/xyz/def.php?Id=14 http://www.example.com/fhu/bar permanent;
Posted at Nginx Forum:
http