Install Yii In Subdirectory

On my hosted server i have several yii websites that use a single yii framework. On this particular one i want to put the yii app in a sub-directory. The only page thats opening is the index, when i go to all other pages like register i get a 404 error page. Must be something with the htaccess file, since its so foreign to me.

directory structure.

i need to be able to put the yii webapp inside the app directory instead of either site1, site2 or site3 directory.





index file


// change the following paths if necessary






Options +FollowSymLinks

IndexIgnore */*

RewriteEngine on

RewriteBase /

# if a directory or a file exists, use it directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php

RewriteRule . index.php

config main.php url manager settings










what is the error? what is missing?

I figured it out. Had to change RewriteBase from / to /app