Answer the question
In order to leave comments, you need to log in
How to remove the web folder in yii2?
On a dev server, Yii2 works fine, but on a production server, "web" is automatically added to all addresses. I send files to production via git, so they are intact.
I use two .htaccess:
First in root (public_html): https://pastebin.com/EvHTJQwU
Second in /web/: https://pastebin.com/6q9rY4tH
Dev server config: https://pastebin.com/qiUjLcLU ( Standard Open Server config)
Production server config: https://pastebin.com/qYHZ4Ejz
Yii version: 2.0.15.1
PHP version: 7.1
Apache 2.4
Answer the question
In order to leave comments, you need to log in
исправьте второй htaccess, как тут Как в Yii2 basic убрать web/ из url при помощи .htaccess и правил urlManager'а?
Но мне кажется, правильнее настроить что б домен смотрел в web и выкинуть первый htaccess вовсе.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question