pbootcms根目录子目录同时放网址伪静态设置-nginx为例
发表日期:2022-09-08 13:22:33   文章编辑:超级管理员    浏览次数:363
 

一个在根目录一个在en 目录 

#请复制下面伪静态配置到nginx配置文件中:

#规则适合PbootCMS V2.0+版本

location /en/ {

if (!-e $request_filename){ 

rewrite ^/en/(.*)$ /en/index.php?p=$1 last;

}

}

location / {

if (!-e $request_filename){

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

 

}

}

fdf.jpg


如没特殊注明,文章均为宜兴博路网络原创,转载请注明来自https://www.boroad.net/news/changjianwenti/374.html