关于nginx重写(rewrite)问号遇到的问题

Feb 3 17:01 出处:本站原创
网站服务器从Apache换成nginx时遇到一个重写的问题。
是关于要重写的地址当中有问号的。
Apache的重写地址为:
要转成nginx能识别的应写为:
相关nginx重写(rewrite)的参数请查看:http://www.geekso.com/nginx/
是关于要重写的地址当中有问号的。
Apache的重写地址为:
RewriteCond %{QUERY_STRING} ^lClassID=378$
RewriteRule ^ProductView\.jsp$ goods\.php\?id=27 [L]
RewriteRule ^ProductView\.jsp$ goods\.php\?id=27 [L]
要转成nginx能识别的应写为:
if ( $query_string = "lClassID=378" ){
rewrite ^ /goods.php?id=27 last;
}
rewrite ^ /goods.php?id=27 last;
}
相关nginx重写(rewrite)的参数请查看:http://www.geekso.com/nginx/




Windows Media Player文件

