我已经设置了这组 .htaccess
重写(Zend Framework默认重写规则):
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
我的 DocumentRoot
文件夹仅包含 .htaccess
和 index.php
,没有别的 .
重写规则应通过index.php将所有请求发送到不存在的文件 . 这种情况发生在 /herp/derp/
(控制器是否存在),但不适用于 /index/herp/
或以 /index/
开头的任何其他URL .
所有 /index/*
网址都被路由到apache的404页面,所有其他网址都可以正常工作 .
我该怎么解决这个问题?
1 回答
原来MultiViews做到了这一点 . 仍不确定原因:P