I am currently developing a web application and i am seperating the frontend and backend.
--app
----Controllers
-------Frontend
-------Backend
----Views
----Frontend
----Backend
I want to have the whole app directory in one folder on the server but if someone visits the backend subdomain it should access the backend only and vice versa since the frontend and backend will share the same models.
How do I go about this?