我的知识记录

PbootCMS伪静态规则NGINX

2、在nginx虚拟主机location配置中添加规则,规则如下:

#1.X版本使用如下规则:
location / {
	if (!-e $request_filename){
		rewrite ^/(.*)$ /index.php/$1 last;
	 }
}
#2.X+版本使用如下规则:
location / {
	if (!-e $request_filename){
		rewrite ^/(.*)$ /index.php?p=$1 last;
	 }
}

程序里默认带的是Apache的

PbootCMS伪静态规则NGINX

标签:

更新时间:2025-12-07 20:58:04

上一篇:PbootCMS使用的是fontawesome

下一篇:PbootCMS自动添加整站链接为绝对链接