1、创建网站
![](https://img.kancloud.cn/be/f1/bef12bf61d30cd1600e90eb077dd1ac0_458x456.png)
2、创建后将后台源码导入根目录中
3、配置伪静态
![](https://img.kancloud.cn/1b/94/1b9492c4a2224276520d4ffa7708458a_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/be/f1/bef12bf61d30cd1600e90eb077dd1ac0_458x456.png)
5、设置/public/static/layer/assets/model/common/js/common.js文件里面域名
![](https://img.kancloud.cn/62/f1/62f1a7fa6764a20ebdb151953264c9eb_703x199.png)
6、配置https,需要申请证书导入,免费证书可以在腾讯云,阿里云申请。
![](https://img.kancloud.cn/77/34/7734f0f0bda8e6d1c789c7935f2fdd5d_927x450.png)