A
A
alysenko2016-09-28 19:15:42
Yii
alysenko, 2016-09-28 19:15:42

How to properly configure .htaccess for YII2 if the project is in a subdirectory?

The site on Yii2 was moved from the root of the site to a subdirectory.
Now the path to it is approximately the following www.site.com/sub/sub1/ yii2 .
How to properly configure htaccess and configs so that when you click on the link www.site.com/sub/sub1/yii2, the site opens?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2016-09-28
@springimport

You need to return .htaccess to the root and change the path to index.php.
For good, do everything in the server settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question