apache - 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/');
并且错误一直存在。
我错过了什么或做错了什么?欢迎您的回答和最终帮助。
最好的
解决方案
推荐阅读
- java - 具有通用值并作为属性的 HashMap
- perl - 使用 CPAN 将 Perl 模块安装到特定目录,当多个模块出现在使用中时
- angular - 在 Angular 6 / ASP.Net Core 中注册、登录、确认电子邮件和密码重置
- sql - 加入显示重复行的 SQL Server
- swift - 我想快速删除最后一个整数值
- android - 带有单选按钮的自定义 ListViewAdapter。
- c++ - 模板和非模板函数之间的 C++ 重载解析
- google-api - 如何通过显示名称获取 Google 评论
- java - Spring Boot XmlBeanDefinitionReader 无法正常工作
- c++ - QGroupBox:QGridLayout内的标签剪切和定位