【发布时间】:2018-08-21 06:34:07
【问题描述】:
我检查了我的 Apache 错误日志,发现以下错误:
[2018 年 3 月 13 日星期二 05:04:47.855612] [core:error] [pid 18177] [client xxx.xxx.xxx.xxx] AH00124: 请求超出内部 10 个限制 由于可能的配置错误而重定向。采用 'LimitInternalRecursion' 必要时增加限制。采用 'LogLevel debug' 获取回溯。
这是我的.htaccess 文件的副本:
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##
<IfModule mod_headers.c>
<FilesMatch ".(js|css|xml|gz|html)$">
Header append Vary: Accept-Encoding
</FilesMatch>
</IfModule>
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
# END WordPress
Apache 2.4.27
PHP 7.0.27
谁能建议我需要改变什么?
【问题讨论】:
-
阅读您的信息:
Use 'LogLevel debug' to get a backtrace。这样做,查看日志,如果仍然不清楚,请在问题中发布调试信息。 -
有关专业服务器或网络相关基础设施管理的问题对于 Stack Overflow 来说是无关紧要的,除非它们直接涉及编程或编程工具。您可以通过Server Fault 获得帮助。
标签: wordpress apache .htaccess