1、创建网站
![](https://img.kancloud.cn/83/e3/83e335f0f0679228cf1296f1a6d3eba0_458x456.png)
2、创建后将后台源码导入根目录中
3、配置伪静态
![](https://img.kancloud.cn/53/39/5339ecd65cd02b54f64fd8785d03da07_470x467.png)
* Nginx
```
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
```
* Apache
```
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
```
4、配置站点目录到public目录
![](https://img.kancloud.cn/83/e3/83e335f0f0679228cf1296f1a6d3eba0_458x456.png)
5、设置/public/static/layer/assets/model/common/js/common.js文件里面域名
![](https://img.kancloud.cn/1c/41/1c412ba7da05b41f8cbeb754acdee50e_703x199.png)
6、设置/public/static/ueditor/php/config.json文件里面的域名
![](https://img.kancloud.cn/f0/f5/f0f539ad91c43891596f509c99717fc0_911x204.png)
7、配置https,需要申请证书导入,免费证书可以在腾讯云,阿里云申请。
![](https://img.kancloud.cn/55/bf/55bf616c0a67ffc104b24578ea7fade4_927x450.png)