当前位置:首页 > 网络技术

dir35分类目录Nginx伪静态规则

西风3年前 (2023-07-05)网络技术1392

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

分享给朋友:

相关文章

Frp(frps,frpc) 内网穿透

Frp(frps,frpc) 内网穿透

编辑包中的 frps.ini 文件服务端参数说明请移步:https://gofrp.org/docs/reference/server-configures/[common] bind_port = 7000 vho…

openwrt 安装make

通常,OpenWrt固件不包含完整的编译环境,包括make命令。但您可以通过以下方式在OpenWrt上安装make命令:首先,通过SSH登录到您的OpenWrt设备中。然后,运行以下命令更新软件包列表:opkg update安装m…

群晖搭建Pushdeer消息推送

群晖搭建Pushdeer消息推送

前言最近家里搞了些微服务,需要一些消息推送,比如 ha 的 设备推送 等,目前网上有的推送感觉一是不太稳定 / 二氪金,所以既然自己有服务,就可以搭建,所以一路摸索,最终实现。Pushdeer官方地址:http://ww…

IPTV EPG服务器搭建教程

IPTV EPG服务器搭建教程

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

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

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

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

2026年最新骆驼IPTV管理后台对接群晖,DIYP双端接入

2026年最新骆驼IPTV管理后台对接群晖,DIYP双端接入

2026年最新骆驼IPTV管理后台对接群晖,DIYP双端接入。支持双端同时接入…

发表评论

访客

看不清,换一张

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