0

我有运行 apache mod_rewrite 和 php 的网站

在我的 public_html 文件夹中,我有 diss .htaccess 文件

RewriteEngine On
RewriteBase /

RewriteRule ^([0-9a-z]+)$ index.php?reurl=$1 

如果该目录中没有同名的文件,则此方法可以正常工作。因此,例如 /favicon 将匹配文件 /favicon.ico 并且永远不会执行 RewriteRule。

我如何停止 /favicon 以匹配 /favicon.ico ?

4

1 回答 1

1

这可能是由于MultiViews。尝试禁用它:

Options -MultiViews
于 2010-10-11T19:56:31.337 回答