+ -
当前位置:首页 → 问答吧 → nginx 的 Rewrite 规则

nginx 的 Rewrite 规则

时间:2011-03-29

来源:互联网

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)-htm-(.*)$ $1\.php\?Rurl=$2
</IfModule>

怎么写呢 求救 大侠们~!~!~!  自己 百度了  也看dz的写法了..但自己就是写不出来....   那位大侠有时间 帮帮忙好吗.....先谢谢了

作者: ly1016   发布时间: 2011-03-29

rewrite "^/(.*)-htm-(.*)$" $1.php?Rurl=$2 last;

作者: 112183883   发布时间: 2011-03-29