记录日常工作关于系统运维,虚拟化云计算,数据库,网络安全等各方面问题。

apache 日志报以下错误提示:NoCase option for non-regex pattern '-f' is not supported and will be ignored



[Sat Jul 11 23:06:22 2009] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Jul 11 23:06:22 2009] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Jul 11 23:06:23 2009] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Jul 11 23:06:23 2009] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Jul 11 23:06:24 2009] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.


是不是静态化哪里有什么问题呢?网站一直运行正常,就是常出现这些错误日志

试试在根目录下的 .htaccess 文件中,将
RewriteCond %{REQUEST_FILENAME} !-f [NC]

改为
RewriteCond %{REQUEST_FILENAME} !-f [OR]



网站已经关闭评论