新闻中心

Apache出现RewriteCond NoCase option for non-regex pattern ‘-f’ is not supported and will be ignored的解决方法

作者 / 无忧主机 时间 2013-07-25 18:03:34

无忧小编这次遇到了一个比较棘手的问题,在一个站长设置了伪静态规则后,访问页面报错,之后无忧小编发现屏蔽了这个.htaccess文件之后页面就正常了,本来问题解决了,但是客户说这个伪静态还是客户自己写的,他需要这个规则,既然站长们有要求,无忧小编就会尽自己最大的能力里帮客户解决问题所在,所以小编去翻找了日志,发现错误日志都是下面的报错: [warn] RewriteCond: NoCase option for non-regex pattern ’-f’ is not supported and will be ignored. 无忧小编看了一下,知道错误在哪里,事情就好办了,这个报错是apache系统报错,这个是改用户的伪静态规则的REWRITE RULE 的问题导致 不停的循环然后产生很多APACHE的子进程然后直到服务崩溃!这个报错会如下面: The rewrite rules are simply looping and are creating so many Apache child processes. Due to many Apache child processes, server load is keeps on increasing and it is leading your server to crash. You would need to check the rewrite rules in .htaccess file to resolve this issue. 解决方法,就是把.htaccess里的一段或多段以下代码: RewriteCond %{REQUEST_FILENAME} !-f [NC] ;替换成 RewriteCond %{REQUEST_FILENAME} !-f [OR]。 修改之后与,发现正常了,这个问题就算解决了。总算是解决了。 纯Linux环境下高端免备案【香港独立IP地址】 php空间,仅仅只需199元一年起。全网最低价域名感恩广大新老客户,首年只要39元。

本文地址:https://www.51php.com/others/11712.html

1
1
1
1
1
1
1

客户服务热线

0791-8623-3537

在线客服