Zend Framework重写:/ index获得404

时间:2012-12-19 11:43:49

标签: apache zend-framework routes http-status-code-404

我有简单的重写规则:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$ index.php

规则在Windows服务器上正常工作 在Linux(Ubuntu 12.10)上,除了/index URL之外,它们都可以工作。 /index/*返回默认的apache 404页面。

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:2)

Options -MultiViews帮了解。

问题描述:http://www.webmasterworld.com/apache/3161107.htm