如何重写表单
的URIhttp://domain1/one/two?three=four
到
http://domain2?path=http%3A%2F%2Fdomain1%2Fone%2Ftwo%3Fthree%3Dfour
使用nginx?
答案 0 :(得分:0)
rewrite ^(.*)$ http://domain2?path=$scheme://$host$1 last;
OR
rewrite ^(.*)$ http://domain2?path=$scheme://$host$reques_uri last;
更多关于nginx variables。