Answer the question
In order to leave comments, you need to log in
Yii2: how to set DocumentRoot?
Tell me how to set the correct DocumentRoot for the site. There is a folder with the site www.mysite.com. It contains the source code for the basic application. In view of the very low-quality hosting, it is not possible to change the host folder for the host. In the bark is the htaccess file in which I wrote
RewriteCond %{REQUEST_URI} !web/
RewriteRule (.*) /web/$1 [R=301,L]
This helps, but links are formed like this /web/site/login and so on. Without specifying /web/ pages are not processed.
I would be grateful for advice!
Answer the question
In order to leave comments, you need to log in
cannot be changed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question