帝国CMS超级TAG管理三种Nginx伪静态规则

   2024-04-01 02:37:52  

/tag/id/

rewrite ^(.*)tag/([0-9]+)/$ $1e/tags/?tagid=$2 last;rewrite ^(.*)tag/([0-9]+)/([0-9]+)/$ $1e/tags/?tagid=$2&page=$3 last;rewrite ^([^/.]*)/tag/list_([0-9]+)_([0-9]+)$ $1/e/tags/itaglist.php?cid=$1&page=$2 last;rewrite ^([^/.]*)/tag/list_([0-9]+)$ $1/e/tags/itaglist.php?cid=$1 last;

/tag/id.html

rewrite ^([^/.]*)/tag/([a-z0-9]+)_([0-9]+).html$ $1/e/tags/itag.php?tagid=$2&page=$3 last;rewrite ^([^/.]*)/tag/([a-z0-9]+).html$ $1/e/tags/itag.php?tagid=$2 last;rewrite ^([^/.]*)/tag/list_([0-9]+)_([0-9]+)$ $1/e/tags/itaglist.php?cid=$1&page=$2 last;rewrite ^([^/.]*)/tag/list_([0-9]+)$ $1/e/tags/itaglist.php?cid=$1 last;

/tag/pinying.html

rewrite ^([^/.]*)/tag/([a-z0-9]+)_([0-9]+).html$ $1/e/tags/itag.php?py=$2&page=$3 last;rewrite ^([^/.]*)/tag/([a-z0-9]+).html$ $1/e/tags/itag.php?py=$2 last;rewrite ^([^/.]*)/tag/list_([0-9]+)_([0-9]+)$ $1/e/tags/itaglist.php?cid=$1&page=$2 last;rewrite ^([^/.]*)/tag/list_([0-9]+)$ $1/e/tags/itaglist.php?cid=$1 last;

 

 

 



声明:本文系互联网搜索百度而收集整理,不以盈利性为目的,文字、图文资料源于互联网且共享于互联网。
如有侵权,请联系 hzy98999#qq.com (#改@) 删除。