user194076
user194076

Reputation: 9027

Works only in root folder

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

Answers (1)

Alexander Dzyoba
Alexander Dzyoba

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

Related Questions