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

Comparing #2 with #3

Revision #3 was created by raminious raminious on Sep 30, 2014, 5:22:34 PM.

Add new information

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