|
发表于 2018-6-11 15:52:53
|
显示全部楼层
正如管理员Hex所说的那样,网站根目录应该设置在application里面。
假设application里就只是一个单独的app,应该在application下新建一个root文件夹,
根目录就在root下,root下放入口文件index.php,favicon.ico而已,
application
|__+ Config
|__+ Controllers
.
.
.
|__- Root
| |__index.php
| |__favicon.ico
| |__robots.txt
|
|__+ ThirdParty
|__+ Views
|__ .htaccess
|__ index.html
这样就安全多了 |
|