去评论
dz插件网

有哪位大佬会写伪静态规则

饾暦饾枎饾枒饾枏饾枂饾枅饾枑
2025/02/13 08:20:10
泛目录伪静态规则1


  location / {
     if (!-e $request_filename){
        rewrite ^/(.*)$ /404.php?id1=$1;
        }

    }



Z-Blog程序伪静态规则2
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}


上门这两套伪静态规则对应的是两套程序,伪静态规则1是一套泛目录的伪静态规则,伪静态规则2是Z-Blog程序的伪静态未知,现在两套程序一起安装在根目录,要把这两套规则写在一起,并且互不影响,应该怎么写,特别注意,都是安装在根目录,具体文件结构如下:

伪静态规则1是一套泛目录文件结构
zong.php
tui.php
tongjis.php
tongji.php
spiderlogs.txt
spider.php
imagecaiji.php
asp.js
5000.php
404.php
2.php
tongji
testyuming
static
Picture
neirong
Model
JS-301
data
cai
cache

伪静态规则2是Z-Blog程序文件结构
zb install
zb_system
zb users
feed.php
index.php
search.php