首页 > 解决方案 > Cakephp:AH00124:由于可能的配置错误,请求超出了 10 个内部重定向的限制

问题描述

我的 cakephp 应用程序给了我这个错误:

[Tue Oct 16 14:31:10.079872 2018] [core:error] [pid 30667] [client ::1:56973] 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., referer: http://localhost/carte_drin/index.php

我以这种方式配置了我的 .htaccess:

/www/:

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

www/carte_drin/app:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^$    webroot/    [L]
    RewriteRule (.*) webroot/$1    [L]
</IfModule>

www/carte-drin/app/webroot :

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
</IfModule>

我在 core.php 中取消了这条语句的注释:

 Configure::write('App.baseUrl', '/carte_drin/');

并且错误一直存在。

我错过了什么或做错了什么?欢迎您的回答和最终帮助。

最好的

标签: apache.htaccessmod-rewritecakephp

解决方案


推荐阅读