当前位置:首页 > 网络技术 > 正文内容

dir35分类目录Nginx伪静态规则

西风2年前 (2023-07-05)网络技术1131

dir35分类目录Nginx伪静态规则   

rewrite ^/(index|webdir|weblink|article|category|update|archives|top|feedback|link|rssfeed|sitemap)(/?)$ /index.php?mod=$1;

rewrite ^/update/(\d+)\.html$ /index.php?mod=update&days=$1;
rewrite ^/update/(\d+)-(\d+)\.html$ /index.php?mod=update&days=$1&page=$2;
rewrite ^/archives/(\d+)\.html$ /index.php?mod=archives&date=$1;
rewrite ^/archives/(\d+)-(\d+)\.html$ /index.php?mod=archives&date=$1&page=$2;
rewrite ^/search/(name|url|tags|intro|br|pr|art)/(.+)-(\d+)\.html$ /index.php?mod=search&type=$1&query=$2&page=$3;
rewrite ^/search/(name|url|tags|intro|br|pr|art)/(.+)\.html$ /index.php?mod=search&type=$1&query=$2;
rewrite ^/(br|pr)/(.+)-(\d+)\.html$ /index.php?mod=search&type=$1&query=$2&page=$3;
rewrite ^/(br|pr)/(.+)\.html$ /index.php?mod=search&type=$1&query=$2;
rewrite ^/view/(\d+)\.html$ /index.php?mod=siteinfo&wid=$1;
rewrite ^/siteinfo/(\d+)\.html$ /index.php?mod=siteinfo&wid=$1;
rewrite ^/siteinfo-(\d+)\.html$ /index.php?mod=siteinfo&wid=$1;
rewrite ^/site/(\d+)-(.+)(/?)\.html$ /index.php?mod=siteinfo&wid=$1;
rewrite ^/artinfo/(\d+)\.html$ /index.php?mod=artinfo&aid=$1;
rewrite ^/linkinfo/(\d+)\.html$ /index.php?mod=linkinfo&lid=$1;
rewrite ^/diypage/(\d+)\.html$ /index.php?mod=diypage&pid=$1;
rewrite ^/rssfeed/(\d+)\.html$ /index.php?mod=rssfeed&cid=$1;
rewrite ^/sitemap/(\d+)\.html$ /index.php?mod=sitemap&cid=$1;
rewrite ^/webdir/(.+)/(\d+)\.html$ /index.php?mod=webdir&cid=$2;
rewrite ^/webdir/(.+)/(\d+)-(\d+)\.html$ /index.php?mod=webdir&cid=$2&page=$3;
rewrite ^/webdir/(.+)/(\d+)-(.+)-(\d+)\.html$ /index.php?mod=webdir&cid=$2&sort=$3&page=$4;
rewrite ^/weblink/(.+)/(\d+)\.html$ /index.php?mod=weblink&cid=$2;
rewrite ^/weblink/(.+)/(\d+)-(\d+)\.html$ /index.php?mod=weblink&cid=$2&page=$3;
rewrite ^/weblink/(.+)/(\d+)-(.+)-(\d+)\.html$ /index.php?mod=weblink&cid=$2&sort=$3&page=$4;
rewrite ^/article/(.+)/(\d+)\.html$ /index.php?mod=article&cid=$2;
rewrite ^/article/(.+)/(\d+)-(\d+)\.html$ /index.php?mod=article&cid=$2&page=$3;
rewrite ^/rssfeed/(.+)/(\d+)\.html$ /index.php?mod=rssfeed&cid=$2;
rewrite ^/rssfeed/(.+)/(\d+)-(\d+)\.html$ /index.php?mod=rssfeed&cid=$2&page=$3;


扫描二维码推送至手机访问。

版权声明:本文转载自网络,如有侵权请与本站联系。

本文链接:https://blog.cnod.net/post/15.html

分享给朋友:

相关文章

怎样给网卡的IP地址设置别名

命令如下,适用于Linux和Mac# 设置IP别名ifconfig en1 alias 192.168.2.1 netmask 255.255.255.0 # 删除IP...

postman中文设置(教程)

postman中文设置(教程)

第一步:  下载postman,安装postman。官网地址:https://www.postman.com/downloads/ 第二步:  下载中文包。官网地址:https://github.com/hlmd/Postman-...

为openwrt里的docker扩容教程

为openwrt里的docker扩容教程

我这边的话是使用的eSir的高大全openwrt固件作为旁路由,eSir的固件里有自带的docker但是空间只有几百兆,有时候我们要折腾一些东西的话是不够的,所以在我们的空间还有剩余的时候可以给他扩容出来,方便使用。我的硬盘够用所以我给他3...

IPTV EPG服务器搭建教程

IPTV EPG服务器搭建教程

📺 PHP-EPG-Docker-Server PHP 实现的 EPG(电子节目指南)服务端, Docker 部署,自带设置界面、台标管理,支持 DIYP & 百川 、 超...

介绍几个好用的群晖DSM7.X第三方套件源

介绍几个好用的群晖DSM7.X第三方套件源

玩群晖的都知道:打开群晖桌面的套件中心,这里面集成了群晖官网所有套件,需要用到什么套件就直接安装什么套件。除了群晖官方套件源,还有一些是群晖NAS爱好者开发和维护的套件也是不错的,下面介绍几个在DSM7.X系统下好用的第三方套件源,以及添加...

最新TVBOX绿豆UI8影视APP源码 新增带直播管理以及加密功能

最新TVBOX绿豆UI8影视APP源码 新增带直播管理以及加密功能

最新版绿豆盒子UI8版本影视APP源码震撼发布,后台新增了添加直播源功能,可批量导入直播源,并且直播源支持加密!作为UI6的升级版,UI8不仅修复了前一版本中存在的一些BUG,还提供了五套不同的UI界面供用户选择。其它方面跟上个版本差不多,...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。