我在Windows Server 2008 R2 Enterprise上运行Apache 2.4(64位)和PHP 7.1,并注意到Apache错误日志中出现以下错误,该错误日志在除主页之外的所有页面上产生HTTP错误500:
AH00124: Request exceeded the limit of 100 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
我认为错误来自htaccess重写中的错误,我查看了类似的帖子,但无法确定要遵循的策略。以下是我的.htaccess公共域的示例:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
错误突然发生,当我能够访问my-site.com时,我无法访问my-site.com/page。 任何人都可以建议我需要改变什么吗?