nginx rewrite带参数?号跳转

if ($request_uri ~* "^/loupan/pho\.php\?houseid=52&type=huxing$") {

 rewrite .* http://house.xxx.com/hengjidongshang/? permanent;

}


这样的话就是从http://house1.xxxx.com/loupan/pho\.php\?houseid=52&type=huxing跳转到http://house.xxx.com/hengjidongshang/

你可能感兴趣的:(nginx,permanent)