How to hide /frontend/web in url addresses on apache

Comparing #2 with #4

Tags

yii2, url, rewrtite, config, /frontend/websecurity

Content

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
[...]