如何停止 apache 与 /favicon.ico 匹配 /favicon
我有一个使用 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 ?
I have site running with apache mod_rewrite and php
In my public_html folder i have diss .htaccess file
RewriteEngine On
RewriteBase /
RewriteRule ^([0-9a-z]+)$ index.php?reurl=$1
this works fine if there are no files in that directory with the same name. so for example /favicon would match the file /favicon.ico and the RewriteRule would never be executed.
how can i stop /favicon to match /favicon.ico ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能是由于 MultiViews 造成的。尝试禁用它:
This is probably due to MultiViews. Try to disable it: