pbootcms二级目录(子目录)如何设置伪静 nginx为例

pbootcms官方nginx伪静态设置如下图:


以Nginx环境为例,创建一个二级目录test,一个主目录,那么伪静态规则如下:

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

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

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



转载请注明来源网址:

本文关键词:

联系我们

在线咨询:点击这里给我发消息

邮件:w420220301@qq.com