由于可能的配置错误,请求超过了10个内部重定向的限制.PHP网站


Request exceeded the limit of 10 internal redirects due to probable configuration error. PHP Site

我有一个带有以下.htaccess文件的PHP/apache站点,无论出于什么原因,我总是在日志中收到以下错误:

AH00124:由于可能的配置错误,请求超过了10个内部重定向的限制。如有必要,请使用"LimitInternalRecursion"来增加限制。使用"LogLevel debug"获取回溯。

.htaccess文件:

RewriteCond %{REQUEST_URI} (/|'.htm|'.php|'.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php [QSA]

请帮忙感谢

RewriteCond %{REQUEST_URI} (/|'.htm|'.php|'.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [PT,L]

试试看。