Yii2 advanced template URLs


I am trying to change site url from http://localhost/yiiwebsite/backend/web/index.php url to http://localhost/yiiwebsite/admin and http://localhost/yiiwebsite/frontend/web/index.php url to http://localhost/yiiwebsite/.

Can anyone help me to do this.


Thanks for your reply, can you please tell me where i need to put vhost files

You don’t place these files anywhere. You set up the host for your application using the content of the proper file depending on your server type. Everything is explained in the README file.


I have done all the steps mentioned in readme file, but when i am trying to run http://localhost/vid/admin url, its showing "The requested URL /frontend/web/vid/admin was not found on this server."