如何使用LimitInternalRecursion修复500内部服务器错误

时间:2020-04-02 16:34:20

标签: php apache .htaccess

我在本地遇到500 Internal Server Error。它抛出以下错误

[Thu Apr 02 22:03:18.752444 2020] [core:error] [pid 3996:tid 1180] [client ::1:9949] AH00124: 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文件是

RewriteEngine On

# Redirect to trailing slash.
RewriteRule ^/japan-constitution(.*) /japan-constitution/$1 [R=301,L]

# Handle 404
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]

RewriteRule ^ /interactive/japan-constitution/404.html [L]

我尝试了多种方法来修复它。但这还没有解决。如果有人对我有帮助

0 个答案:

没有答案