如何重写表单的URI
/one/two?path=three&foo=bar
至
/one/two/three?foo=bar
使用nginx?
尝试这个:
location ~ /one/two { if ($args ~ "path=([^&]+)&(.+)") { set $path $1; set $foo $2; rewrite ^/one/two "/one/two/$path?$foo?" permanent; } }