宝塔搭建网站分站进不去怎么回事

宝塔搭建网站分站进不去的原因:本系统中hosts文件未加入。

宝塔搭建网站分站进不去的解决方法:

1.打开宝塔管理界面,点击“网站”。

2.在列表中选择访问不了的网站,点击右侧“设置”打开网站设置对话框。

3.再点击“伪静态”选项,选择“当前”,添加代码:

location / {

if (!-e $request_filename){

rewrite ^(.*)$ /index.php?s=$1 last; break;

}

}

Both comments and pings are currently closed.

Comments are closed.

Powered by KingAbc | 粤ICP备16106647号-2 | Loading Time‌ 0.658