pbootcms根目录子目录同时放网址如何伪静态设置nginx为例
一个在根目录一个在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;
}
}

更新时间:2025-12-07 19:18:49
下一篇:pbootcms在IIS环境下打不开提示HTTP错误500.19-InternalServerError的解决方法
