【发布时间】:2014-08-15 18:02:31
【问题描述】:
我的服务器上出现了一堆 503,但不知道为什么。似乎与重定向相关,因为我的错误日志包含以下错误:
[Fri Aug 15 09:27:09 2014] [error] [client xx.xxx.x.xxx] 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.
[Fri Aug 15 09:27:09 2014] [debug] core.c(3072): [client xx.xxx.x.xxx] r->uri = /wp/wp/wp/wp/wp/wp/wp/wp/wp/wp/login.php
这是我的 htaccess 的内容:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ wp/$1 [L]
Include includes/ul-rewrites.txt
RewriteCond %{HTTP_HOST} !^.*\.xxx\.com
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_URI} !^/(search|newsroom|aboutul|offerings|blog|es|fr).*$
RewriteRule ^(.*)$ http://site.xxx.com/$1 [R=302,L,NE]
RewriteRule . index.php [L]
</IfModule>
【问题讨论】:
标签: linux apache .htaccess mod-rewrite redirect