PbootCMS伪静态规则 NGINX
时间 :
2021-10-09
编辑 :admin
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的
