我在 apache 错误日志中收到此错误:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
我的.htaccess
文件看起来像:
AddDefaultCharset UTF-8
RewriteEngine on
RewriteRule ^view/([A-Za-z0-9-]+)/?$ view.php?id=$1 [NC,L]
RewriteRule ^report/([A-Za-z0-9-]+)/?$ report.php?id=$1 [NC,L]
RewriteRule ^verifyAccount/([A-Za-z0-9-]+)/?$ verifyAccount.php?hash=$1 [NC,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteCond %{HTTP_HOST} !^www.nitrobit.net$ [NC]
RewriteRule ^(.*)$ http://www.nitrobit.net/$1 [L,R=301]
我用谷歌搜索了这个问题,我看到一些人的解决方案是在 htaccess 文件中添加这一行:RewriteBase /
. 我做到了,错误仍然存在。
解决办法是什么?非常感谢你,对不起我的英语