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

dir35分类目录Nginx伪静态规则

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

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

分享给朋友:

相关文章

iis8.5伪静态discuss论坛伪静态规则

discuss论坛伪静态规则: <?xml version="1.0" encoding="UTF-8"?>  <configuration…

随机头像 API 搭建

选择安装位置一般安装在网站根目录初始化文件在目录下创建 api.php 文件,随后创建一个名为 img 的文件夹,将图片存放进 img 文件夹下<?php $img_array = glob('img/*…

openwrt 安装make

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

openwrt 获取内核版本

要获取在OpenWrt上运行的内核版本,您可以使用以下命令:…

IPTV EPG服务器搭建教程

IPTV EPG服务器搭建教程

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

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

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

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