Changes
Title
unchanged
How to hide /frontend/web in url addresses on apache
Category
unchanged
How-tos
Yii version
unchanged
Tags
changed
yii2, url, rewrtite, config, /frontend/websecurity
Content
changed
There is an issue on Yii2 to redirecting / urls to /frontend/web.<br>
In other words we need a way to hidden <b>/frontend/web</b> from addresses
. <br>
We will do this without changing Apache configuration and creating virtual host or setting document root (It's good for share hostings that we have not access to apache.conf)
Let's do it:
1- Create .htaccess file on the root directory with this content[...]