1
私はURLにいくつか古い引数のリストを持っています。特定の引数リストのためのNginxリダイレクト
arg1
arg2
arg3
...
argn
リンクのクエリ部分にあるこれらの引数のいずれかを持つ要求のいずれかを特定のサイトにリダイレクトする必要があります。
/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)
これをうまく表現する方法はありますか。何らかの理由で、locationには正規表現と一致する引数がありません。