35dir分类目录网站的nginx伪静态规则
2022-09-30 15:08:00
0
35dir分类目录网站的nginx伪静态规则,比如本站用的nginx伪静态规则就是下面的,如果是其他的35dir源码修过的,可能要修改一下下面的伪静态规则即可,本站在用的哦,不会出现用不了的问题。
rewrite ^/(index|webdir|article|category|update|vipmulu|webthumb|archives|feedback|link|rssfeed|sitemap)\.html$ /index.php?mod=$1 last;
rewrite ^/update-(\d+)-(\d+)\.html$ /index.php?mod=update&days=$1&page=$2 last;rewrite ^/vipmulu-(\d+)-(\d+)\.html$ /index.php?mod=vipmulu&days=$1&page=$2 last;
rewrite ^/archives-(\d+)-(\d+)\.html$ /index.php?mod=archives&date=$1&page=$2 last;
rewrite ^/search-(name|url|tags|intro|br|pr|sr|art)-(.*)-(\d+)\.html$ /index.php?mod=search&type=$1&query=$2&page=$3 last;
rewrite ^/search-(name|url|tags|intro|br|pr|sr|art)-(.*)\.html$ /index.php?mod=search&type=$1&query=$2 last;
rewrite ^/site/(.+)\.html$ /index.php?mod=siteinfo&wid=$1 last;
rewrite ^/artinfo-(\d+)\.html$ /index.php?mod=artinfo&aid=$1 last;
rewrite ^/diypage-(\d+)\.html$ /index.php?mod=diypage&pid=$1 last;
rewrite ^/rssfeed-(.+)-(\d+)\.xml$ /index.php?mod=rssfeed&type=$1&cid=$2 last;
rewrite ^/rssfeed-(.+)\.xml$ /index.php?mod=rssfeed&type=$1&cid=$2 last;
rewrite ^/sitemap.xml$ /index.php?mod=sitemap last;
rewrite ^/webdir-(.+)-(\d+)-(\d+)\.html$ /index.php?mod=webdir&cid=$2&page=$3 last;
rewrite ^/webthumb-(.+)-(\d+)-(\d+)\.html$ /index.php?mod=webthumb&cid=$2&page=$3 last;
rewrite ^/article-(.+)-(\d+)-(\d+)\.html$ /index.php?mod=article&cid=$2&page=$3 last;
rewrite ^/qr/(.*)_(.*)_(.*)_http:/(.*)_cdn\.png$ /qr/index.php?m=$1&e=$2&p=$3&url=http://$4 last;
rewrite ^/qr/(.*)_(.*)_(.*)_(.*)_cdn\.png$ /qr/index.php?m=$1&e=$2&p=$3&url=$4 last;
上一篇: 武汉aqi aqi计较 ?