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

dir35分类目录Nginx伪静态规则

西风1年前 (2023-07-05)网络技术508

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...

黑群晖918+DSM6.2_25556安装引导文件

黑群晖DSM6.2_25556安装引导文件下载地址链接: https://pan.baidu.com/s/12fY4s9KDJ6py5HX_W7qdKQ提取码:az41...

群晖设置第三方套件以及安装Transmission

群晖设置第三方套件以及安装Transmission

玩群晖Nas的人中,很多一部分是冲着媒体中心买的,建立个家庭的媒体中心,以及PT下载中心,这样影片来源及存储都解决了。群晖DSM自带的Download Station感觉有点弱,然后各种不方便,比较适合轻度玩PT的,不过随着群晖更新,功能也...

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

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

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

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

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

随机头像 API 搭建

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

发表评论

访客

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