pbootcms百度云上伪静态怎么设置的,默认的不行

2024年03月25日 百度云虚拟主机伪静态 pboot百度云伪静态 懒猪技术

问题描述:


买了百度云虚拟主机,用默认的伪静态都不行,不知道怎么设置了。
(问题收集于QQ群)

3步即可解决,百度云虚机伪静态配置
①:根目录创建 bcloud_nginx_user.conf 文件
②:把此文件用编辑器打开,复制下面代码,粘贴,然后保存。

location / {
	if (!-e $request_filename){
		rewrite ^/(.*)$ /index.php?p=$1 last;
	}
}

③:最后到面板后台点击“重载站点服务”,完事!

参考下图例子:




本文链接:http://so.lmcjl.com/news/423/

展开阅读全文
相关内容