Difference between #2 and #3 of
How to hide /frontend/web in url addresses on apache

Revision #3 has been created by raminious on Sep 30, 2014, 5:22:34 PM with the memo:

Add new information
« previous (#2) next (#4) »

Changes

Title unchanged

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

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

yii2, rewrtie, config, /frontend/web

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
[...]
10 0
21 followers
Viewed: 127 942 times
Version: 2.0
Category: How-tos
Written by: raminious
Last updated by: jim.
Created on: Sep 30, 2014
Last updated: 9 years ago
Update Article

Revisions

View all history