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

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
[...]
10 0
21 followers
Viewed: 126 110 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