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的

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