Yii2 Initial Configuration for advanced template
1. change the directory backend 2. change the common/config/bootstrap.php file as https://github.com/streetcoder/yii2-initial-config/blob/master/common/config/bootstrap.php 1. Create .htaccess in root and write on it as https://github.com/streetcoder/yii2-initial-config/blob/master/.htaccess 1. Change the file /admin/config/main.php as https://github.com/streetcoder/yii2-initial-config/blob/master/admin/config/main.php 1. Change the file /frontend/config/main.php as https://github.com/streetcoder/yii2-initial-config/blob/master/frontend/config/main.php 1. put this file: https://github.com/streetcoder/yii2-initial-config/blob/master/frontend/web/.htaccess in /frontend/web and backend/web directoryYou can access frontend and backend as :
frontend: http://localhost/your_directory/site/index
backend: http://localhost/your_directory/admin/site/index