Yii Bolierplate Question

Reading through the documentation about the file / folder structure it looks like for a backend and front end structure you would need 2 URL’s in apache pointing to the relevant /www folders.


www.site.com -> /frontent/www

admin.site.com -> /backend/www

Our current websites are currently set up as follows:

www.site.com = frontend

www.site.com/edit = backend

Is there a preferred way to get aound this:

Our possible solutions so far are:

send apache to point to / then add a .htaccess to run the relevant file based on the URL.

As you can imagine this is will not be ideal as it will expose files.

Create symbolic link within /frontend/www called edit to point to /backend/www

Then include .htaccess file to deal with the routing