Revision #149 has been created by rackycz on Oct 6, 2019, 9:46:38 PM with the memo:
« previous (#148) next (#150) »
Yii v2 snippet guide
[...]Note that **Yii::$app->request->baseUrl** returns "/myProject/web". No trailing slash.
**How to redirect web to subfolder /web**
Yii 2 has the speciality that index.php is hidden in the web folder. I didnt find in the official documentation the important info - how to hide the folder, because user is not interested in it ...
Our demo application is placed in folder:
Now you will need 2 files named .htaccess