为什么这会产生超过10个内部重定向的限制"?

时间:2017-12-01 15:42:39

标签: apache .htaccess mod-rewrite

我无法找到导致以下错误的原因:

  

AH00124:由于可能的配置错误,请求超出了10个内部重定向的限制。使用' LimitInternalRecursion'必要时增加限额。使用' LogLevel debug'获得回溯。,referer:<网址>

它可能来自.htaccess中的多个条件吗?

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)$ /index.php?id=$2&user=$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)$ /index.php?id=$1 [L]

Order Allow,Deny
Allow from all
Deny from 198.51.100.0 # spammer

<Files "secretdb">
Order Allow,Deny
Deny from all
</Files>

PS:我已经阅读了Request exceeded the limit of 10 internal redirects,但我没有看到解决方案。

0 个答案:

没有答案