【发布时间】:2016-07-10 09:52:21
【问题描述】:
我在开发服务器上开发了一个基于 Cakephp 3 的 Web 应用程序。 现在我想去现场。所以我使用以下架构将我的 cakephp 文件夹上传到我的新服务器: www/网站
现在,当我尝试使用服务器的地址时:http://test.cluster.ovh.net/site 它工作正常。
但是当我尝试在子文件夹 www/site 上定位(使用 ovh 成员区域)我的域 http://test.com 和 www.test.com 时,我的 cakephp 应用程序显示内部服务器错误 500。
这是我在 cakephp 中的基本 .htaccess :
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^$ site/webroot/ [L]
RewriteRule (.*) site/webroot/$1 [L]
</IfModule>
错误日志:
[2016 年 3 月 22 日星期二 22:07:26] [错误] [客户端 xx.xxx.xx.xx] [主机 test.cluster.ovh.net] 请求超出了 10 个内部的限制 由于可能的配置错误而重定向。采用 'LimitInternalRecursion' 必要时增加限制。采用 'LogLevel debug' 获取回溯。
我该怎么办?
谢谢!
编辑:在此处找到解决方案: Request exceeded the limit of 10 internal redirects
【问题讨论】:
-
你检查过错误日志吗?
-
第一条消息已编辑
-
你读过this post吗?这很可能是由错误的重定向引起的。
-
如果您希望通过
test.com本身访问该站点,为什么要将其放在子文件夹中? -
@Sevvlor 我会读的,谢谢
标签: php apache .htaccess cakephp cakephp-3.0