I have a Yii app in my webroot directory, and I just started one in a subfolder of the webroot. The subfolder app is barebones created by yiic, with no apparent connections to the webroot application, yet whenever I click on a menu item on the yiic-generated site view, the script is redirected to the webroot index page. The address field of the browser displays the correct url (‘http://mydomain.com/appfolder/site/contact’), but the browser window shows the root app’s site index.
I have not hacked yii, and just to be sure, I deleted the yii framework folder and reinstalled from a newly downloaded release file. When I echo baseUrl in the subfolder app, it returns the correct url.