### 虛擬主機搭建HuoCMS
以阿里云虛擬主機為例,服務器環境為LAMP,Apache2.4 + php7.2 + mysql5.7
1.根目錄新建index.php文件,將以下內容放入文件中
~~~
<?php
include './public/index.php';
~~~
2.將public目錄下的admin.php、backend文件夾、static文件夾、tinymce文件夾移動至根目錄,移動好之后如下圖所示

3.根目錄新建.htaccess文件,將以下內容放入文件中
~~~
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST\_FILENAME} !-d
RewriteCond %{REQUEST\_FILENAME} !-f
RewriteRule ^(.\*)$ ./index.php/$1 \[QSA,PT,L\]
SetEnvIf Authorization .+ HTTP\_AUTHORIZATION=$0
~~~
4.虛擬主機后臺打開以下PHP函數

5.分別在app目錄、data目錄、config目錄、route目錄、view目錄、vendor目錄下放置.htaccess文件,內容如下
~~~
Require all denied
~~~