I have a list of some obsolete arguments in URLs.
arg1
arg2
arg3
...
argn
I need to redirect any of the request having any of those arguments in the query part of the link, to a specific site.
/page.html?arg1=sxx&arg2=uuu -> http://xxx.x.xxx.x
/page.php?arg3= -> http://xxx.x.xxx.x
/dir/dir/page/?arg2=111&& argn=xyyyy -> http://xxx.x.xxx.x
/page.html (is not redirected but matched to other existing rules in nginx)
Any idea how to express it nicely? For some reasons location has no arguments to be matched by regular expression.