Answer the question
In order to leave comments, you need to log in
Should I move the web folder?
A colleague started to deploy a new application and a debatable question arose, is it worth taking out the contents of the web folder from the basic version of yii2?
All arguments are based on the fact that everyone does this, although I have never seen it.
If yes, in what cases is it justified?
Answer the question
In order to leave comments, you need to log in
Looking as the server is configured. The removal of the web is justified so that the contents of the web are in the public folder, and the rest of the framework files are outside the public folder. It's security and it's less of a tambourine dance around .htaccess. It's easier when autosubdomains. Yes, and purely aesthetically beautiful.
In any case, there are pluses, no minuses.
Here is a related video:
https://youtu.be/hg5t5F3HdM4
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question