+ -
当前位置:首页 → 问答吧 → nginx带参数的形式如何配置?

nginx带参数的形式如何配置?

时间:2011-10-14

来源:互联网

原来用的是apache,现在要改成nginx
RewriteCond %{QUERY_STRING} ^t=([0-9,]+)$ 
RewriteRule ^/base/supply/edit-s([0-9]+).shtml$ /supply/edit.ms?supplyId=$1&typeIds=%1 [PT]

地址出来就是/base/supply/edit-s123.shtml?t=1,2,3

这个变成nginx如何变呀?我用的笨方法,直接将参数作为加在了/supply/edit.ms?supplyId=$1&$uri
但这样不好。
烦请大侠们解决!!!

作者: heren2005   发布时间: 2011-10-14

在线等回复

作者: heren2005   发布时间: 2011-10-14

热门下载

更多