michalzuber
michalzuber

Reputation: 5215

CakePHP frontpage without index.php has error

I'm getting an error when I try to open test.domain.com/ if I add index.php (test.domain.com/index.php) it works and subpage test.domain.com/shop also works without index.php between the domain and path (test.domain.com/index.php/shop) I'm trying to set it up on a shared hosting as a subdomain for testing purpose. I already tried different RewriteBase rules in htaccess without success.

Error notice:

class AppController extends AppController {

    var $name = 'App';


    function webroot() {

    }

}

Upvotes: 1

Views: 2483

Answers (1)

zeroSkillz
zeroSkillz

Reputation: 1468

In your shared host, do you know if .htaccess files are enabled ( AllowOverride should be set on your vhost) It sounds like the rewrite rules are not being loaded.

If this is the case, then read this for information on how to debug this...

If this is the case and you can't get your shared host to enable .htaccess, check out this link for information about running cake without mod_rewrite

Upvotes: 1

Related Questions