Reputation: 9027
My application written with YII framework works only if placed in root folder like: Localhost/ if I place it somewhere like: localhost/test, then it does not work(Links does not work, CSS is not attaching) Where should I change it? thanks!
Upvotes: 0
Views: 709
Reputation: 4209
You should work around your basePath variable in protected/config/main.php. In almost all cases it looks like
'basePath' => dirname(__FILE__).'/..'
But if this won't help you i think you should check your web-server config.
Upvotes: 3