Answer the question
In order to leave comments, you need to log in
How to move Yii2 files out of server scope on regular hosting?
As I understand it, there are 2 methods for protecting the site's internal scripts:
Answer the question
In order to leave comments, you need to log in
It's not entirely clear what you mean by scripts.
In public_html, you can leave only public files that you can give to users without fear. For example, https://github.com/yiisoft/yii2-app-basic/tree/mas... Everything else can be anywhere, as long as php has access to it.
js, css, and more can be published through the assets www.yiiframework.com/doc-2.0/guide-structure-asset... and stored separately as well.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question