dz二级目录下安装cms 怎么能让伪静态规则不作用于cms目录呢 Nginx

目前的伪静态规则作用是重定向动态链接到www.xx.com/xx/xx.html

但是cms链接格式也是www.xx.com/cms/index.html。

请问各位大佬,如何排除cms目录呢?

已经百度搜索过了,实在不明白,麻烦各位啦~~
主机 nginx

rewrite ^([^\.]*)/z-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/a-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
rewrite ^([^\.]*)/(\w+)/list([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/(\w+)/index\.html$ $1/forum.php?mod=forumdisplay&fid=$2 last;
rewrite ^([^\.]*)/([0-9]+)-([0-9]+)-1\.html$ $1/forum.php?mod=viewthread&tid=$2&page=$3 last;
rewrite ^([^\.]*)/gid-([0-9]+)\.html$ $1/forum.php?gid=$2 last;
rewrite ^([^\.]*)/(\w+)-id([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3 last;
rewrite ^([^\.]*)/(\w+)-id([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&page=$4 last;
rewrite ^([^\.]*)/f-(\w+)-s([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3 last;
rewrite ^([^\.]*)/f-(\w+)-s([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3&page=$4 last;
rewrite ^([^\.]*)/f-(\w+)-t([0-9]+)-s([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$4&typeid=$3 last;
rewrite ^([^\.]*)/f-(\w+)-t([0-9]+)-s([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$4&typeid=$3&page=$4 last;
rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last;
rewrite ^([^\.]*)/tag-(thread|blog)-([0-9]+)-([0-9]+)\.html$ $1/misc.php?mod=tag&id=$3&type=$2&page=$4 last;
rewrite ^([^\.]*)/tag-([0-9]+)\.html$ $1/misc.php?mod=tag&id=$2 last;
rewrite ^([^\.]*)/tag\.html$ $1/misc.php?mod=tag last;

rewrite ^([^\.]*)/answer\.html$ $1/plugin.php?id=ljww360 last;
rewrite ^([^\.]*)/search\.html$ $1/plugin.php?id=ljww360&mod=search&do=ss last;
rewrite ^([^\.]*)/answer-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=ljww360&mod=wtw&wid=$2&tid=$3 last;
rewrite ^([^\.]*)/type-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=ljww360&mod=list&q=$2&catid=$3&upid=$4 last;
rewrite ^([^\.]*)/my-([a-z]+)\.html$ $1/plugin.php?id=ljww360&mod=wtw&action=$2 last;
rewrite ^([^\.]*)/my-ask-([a-z]+)\.html$ $1/plugin.php?id=ljww360&mod=wtw&myaction=$2 last;
rewrite ^([^\.]*)/my-whd-([a-z]+)\.html$ $1/plugin.php?id=ljww360&mod=wtw&myaction=$2 last;

if (!-e $request_filename) {
    return 404;
}


Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐