导航首页 » 技术教程 » PbootCMS使用宝塔环境配置二级目录伪静态
PbootCMS使用宝塔环境配置二级目录伪静态

PbootCMS使用宝塔环境如何配置二级目录伪静态?红色是主站(主站也可以有其余的伪静态规则,替换即可),蓝色是主站下面的子目录,test改为你二级目录名。

location / {    
  if (!-e $request_filename) {         
  rewrite  ^(.*)$  /index.php?s=/$1  last;
     }
 }
 location /test/ {    
  if (!-e $request_filename) {         
  rewrite ^/test/(.*)$ /test/index.php/$1 last;    
 } 
}

 



图片尺寸300*300