作者coldollsheep (加油加油^^)
看板PHP
标题[请益] Internal Server Error cakephp htaccess
时间Fri May 25 17:32:55 2012
各位先进HELLO
小弟今天在搬移一个cakephp专案的时候
想要复制一份到别的主机使用
却发现Internal Server Error这个错误。
GOOGLE查到应该是htaccess里面有问题
但是,原本的专案就是这样子阿 应该是没问题的
----以下是该档案内容
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /~kiang/test/
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
----------------------------
可以看到那个kiang 我也的确是建了一个使用者kiang把网站送到里面
查了一下error log
写了如下的讯息 也只有这个讯息
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.
网路上是说,因为这个形成了一个错误的回圈
一直重复指引转址才会这样。
我基本上尝试了两个方向。
1.去httpd.conf里面修改AllowOverride ALL
2.有检查htaccess里面有没有奇怪的文字 例如说BOM 或是破碎的码
不知道有没有人可以解决我的问题?
真的很需要解决
500P奉上 谢谢
--
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 60.250.248.62
1F:推 ncuman:solution 1)在 httpd.conf 文件最後加上以下代码︰ 05/25 17:49
2F:→ ncuman:LoadModule rewrite_module modules/mod_rewrite.so 05/25 17:49
3F:→ ncuman:solution 2)发现ZendServer\etc\ZendEnablerConf.xml中开头 05/25 17:50
4F:→ ncuman:是一段乱码,将其改成以“<?xml" 开头再 restart apache 05/25 17:51