Yii2 Advanced frontend and backend in development environment


i am using yii2 to learn and start some little project for practice, i want to configure my WAMP server to run yii2 on subdirectory, and run the advanced template.

i know and i already searched all over the web for any solutions, there is no 100% solution to this question and that gives a good way to do it.

i just want to redirect from http://localhost/Learning/Yii2/prj1/ to http://localhost/Learning/Yii2/prj1/frontend/web

and so on the backend. but i want to have the abillity to move the final result to production environment on my server and using virtualHost/documentRoot to configure the server in the best way.

Thanks in advance

Hi! Take a look at this https://github.com/yiisoft/yii2/blob/master/docs/guide/tutorial-advanced-app.md. The 4th point of "Getting started".



yes, i already saw it, and it not the same as i was looking for, it depends on the server configuration for the frontend/backend route: