title: Yii2 Advance Application Remove '/web' and 'index.php' in frontend and backend
body: <p>I referred the below given link</p>
  
  <p><a href="https://stackoverflow.com/questions/28118691/yii2-htaccess-how-to-hide-frontend-web-and-backend-web-completely">Yii2 htaccess - How to hide frontend/web and backend/web COMPLETELY</a></p>
  
  <p><a href="https://stackoverflow.com/questions/32645180/remove-index-php-from-url-after-removing-web-folder-from-frontend-and-backend-in">Remove index.php from url after removing web folder from frontend and backend in yii2</a></p>
  
  <p>but, i did't get the output</p>
  
  <p><strong>show below URL</strong></p>
  
  <p>localhost/yii2advance/backend/web/index.php?r=site%2Flogin</p>
  
  <p>localhost/yii2advance/frontend/web/index.php?r=site%2Flogin</p>
  
  <p>in above url i remove <code>/web/index.php</code> in both <code>frontend</code> and <code>backend</code></p>
  
  <p><strong>I get URL like</strong></p>
  
  <p>localhost/yii2advance/backend/site/login</p>
  
  <p>localhost/yii2advance/frontend/site/login</p>