全球主机交流论坛
标题:
百万火急 Apache与Nginx的规则表达式!
[打印本页]
作者:
花香赢路
时间:
2010-12-4 21:59
标题:
百万火急 Apache与Nginx的规则表达式!
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)a(.*)$ $1wz_index.php?$2
</IfModule>
请问下上面的规则表达试转换成Nginx后 如下
location / {
rewrite ^/(.*)a(.*)$ /$1wz_index.php?$2;
}
为什么不对呢?
作者:
chijian
时间:
2010-12-4 22:26
location / {
rewrite ^/(.*)a(.*)$ /$1wz_index.php?$2 last;
}
作者:
serverpoint
时间:
2010-12-4 23:07
提示:
作者被禁止或删除 内容自动屏蔽
作者:
瘦够了
时间:
2010-12-4 23:38
原帖由
chijian
于 2010-12-4 22:26 发表
location / {
rewrite ^/(.*)a(.*)$ /$1wz_index.php?$2 last;
}
支持一下
欢迎光临 全球主机交流论坛 (https://hostloc.onozo.cc/)
Powered by Discuz! X3.4