我需要简单的 Nginx 重写规则来重写
/?contidion1=variable1&condition2=variable2
到
/variable1/variable2/
这个不行。。。
rewrite ^/condition/(.*)/([0-9])$ /?condition1=$1&condition2=$2 last;
也试过:
rewrite ^/condition/(.*)/(.*)$ /?condition1=$1&condition2=$2 last;
但是条件有 1 个变量工作良好
rewrite ^/condition/(.*)$ /?condition1=$1 last;