I am not an expert when it comes to URL rewriting (Neither with Apache nor with Yii).
You said it doesn’t work when you add this line:
RewriteRule ^/backend/(.*)$ backend.php
right before this:
RewriteRule . index.php
in your .htaccess file?
I guess this is because yii is interpreting "backend" as controllerID which is infact a static string in the URL.
Can you show me/us your URL rules within the backend config? (What error does your application show anyway?)
Does it work when you create a "backend" directory and move the "backend.php" file from within the root directory into this directory? (Make sure to adjust the paths in backend.php and create a new .htaccess file with
You don’t need any particular rewrite rules if you create symlinks to backend/frontend, and then keep the entire directory outside of the document root.