+ -
当前位置:首页 → 问答吧 → 这条 rewrite 为什么没效呢??

这条 rewrite 为什么没效呢??

时间:2011-09-25

来源:互联网

rewrite ^/standard-c/function/(.+) /standard-c/index.php?fn=$1 last;
rewrite ^/linux/command/(.+) /linux/index.php?p=command&c=$1 last;

nginx是上面这样写的,为什么我写成 apache的按照上面这个。



放到 htaccess 就无效了。还是404错误无法映射


<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^/linux/command/(.+) /linux/index.php?p=command&c=$1 [L]
RewriteRule ^/standard-c/function/(.+) /standard-c/index.php?fn=$1 [L]
</IfModule>

作者: 风吟   发布时间: 2011-09-25

帮你顶一下。

作者: hssk   发布时间: 2011-09-25

相关阅读 更多