Nginx, I am trying to redirect one url matching the query parameter but it doesn't work.
http://www.example.org/xyz?abc=123&color="<K>" to the below URL http://www.example.org/anything/something).
I tried below but it didn't work.
location = /xyz {
if ($args ~* "^&color="<K>") {
rewrite ^.*$ /anything/something redirect;
}
}
Anyone can help on it?