没有index.php的CakePHP首页有错误

时间:2011-02-05 21:30:08

标签: cakephp cakephp-1.3

当我尝试打开test.domain.com/时出现错误,如果我添加index.php(test.domain.com/index.php)它可以工作,子页面test.domain.com/shop也可以域和路径之间没有index.php(test.domain.com/index.php/shop) 我正在尝试将其设置为共享主机作为测试目的的子域。 我已经在htaccess中尝试了不同的RewriteBase规则而没有成功。

错误通知:

class AppController extends AppController {

    var $name = 'App';


    function webroot() {

    }

}

1 个答案:

答案 0 :(得分:1)

在共享主机中,您知道是否启用了.htaccess文件(应该在您的vhost上设置AllowOverride)听起来好像没有加载重写规则。

如果是这种情况,请then read this for information on how to debug this...

如果是这种情况,您无法让共享主机启用.htaccess,check out this link for information about running cake without mod_rewrite