dedecms织梦nginx下伪静态规则设置

网站建设 2022-07-27 08:13www.1681989.com免费网站
dedecms织梦ngx下伪静态规则设置方法 location/{ rewrite^/dex.html$/dex.phplast; rewrite^/list-([0-9]+)\.html$/plus/list.php?tid=$1last; rewrite^/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$/plus/list.php?tid=$1totalresult=$2PageNo=$3last; rewrite^/view-([0-9]+)-1\.html […]



dedecms织梦 ngx下伪静态规则设置方法

 

 
location / {
rewrite "^/dex.html$" /dex.php last;
rewrite "^/list-([0-9]+)\.html$" /plus/list.php?tid=$1 last;
rewrite "^/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$" /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 last;
rewrite "^/view-([0-9]+)-1\.html$" /plus/view.php?arcID=$1 last;
rewrite "^/view-([0-9]+)-([0-9]+)\.html$" /plus/view.php?aid=$1&pageno=$2 last;
rewrite "^/tags/$" /tags.php last;
rewrite "^/tags/(.)/$" /tags.php?/$1/ last;
break;
}


Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by