Yii::app()->Request->Baseurl - Issue

Hello all.

I have a website built with Yii in this url:

The problem is, wen i click in any link, the url changes but the content continue the same, and if we click again in any link the content changes but the url get buggy:


This is how it should be:

That is what i got:

I believe its an server config issue…any clues?


Do you use .htaccess to hide index.php in the url?

If so, take care about to set the RewriteBase if your an alias documentroot is configured.

See this comment.

Thx u Joblo!

I added ‘RewriteBase /’ to my htaccess and it worked!