关于destoon6.0下的ngnix伪静态
静态 关于
2023-09-14 08:57:34 时间
关于destoon6.0下的ngnix伪静态配置
##rewrite nginx rewrite '(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)' /404.php last; rewrite '(.*)/(admin|cache|editor|file|include|lang|module|skin|template)/(.*)\.php(.*)' /404.php last; rewrite '(.*)-htm-(.*)' $1.php?$2 last; rewrite '(.*)/show-([0-9]+)([\-])?([0-9]+)?\.html' $1/show.php?itemid=$2&page=$4 last; rewrite '(.*)/list-([0-9]+)([\-])?([0-9]+)?\.html' $1/list.php?catid=$2&page=$4 last; rewrite '(.*)/([A-za-z0-9_\-]+)-c([0-9]+)-([0-9]+)\.html' $1/list.php?catid=$3&catdir=$2&page=$4 last; rewrite '(.*)/show/([0-9]+)/([0-9]+)?([/])?' $1/show.php?itemid=$2&page=$3 last; rewrite '(.*)/list/([0-9]+)/([0-9]+)?([/])?' $1/list.php?catid=$2&page=$3 last; rewrite '(.*)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html' $1/index.php?moduleid=$2&catid=$3&itemid=$4&page=$5 last; rewrite '(.*)/([a-z]+)/(.*)\.shtml' $1/$2/index.php?rewrite=$3 last; rewrite '(com)/([a-z0-9_\-]+)/([a-z]+)/(.*)\.html' index.php?homepage=$2&file=$3&rewrite=$4 last; rewrite '(com)/([a-z0-9_\-]+)/([a-z]+)([/])?' index.php?homepage=$2&file=$3 last; rewrite '(com)/([a-z0-9_\-]+)([/])?' index.php?homepage=$2 last; rewrite '(.*)/kw-([A-za-z0-9]+)\.html' $1/search.php?kw=$2 last; rewrite 'template/(.*).htm' /404.php last; location /blog/ { if (!-e $request_filename){ rewrite ^/blog/(.*)$ /blog/index.php?s=$1 last; break; } }
相关文章
- 白盒测试技术_静态白盒测试
- Promise 静态 API 的使用方法
- windwos 添加静态路由表 及查看网卡接口索引
- 花费3元尝试CDN分发,给静态资源提提速的同时也减少服务器压力
- 关于伪静态的实现方法
- typecho设置伪静态_Win_IIS环境如何安装
- 关于静态资源压缩
- 静态链接库的创建和使用
- 关于 ubuntu 设置静态IP的问题
- python脚本处理伪静态注入
- 快速搭建Redis静态工具类(redis 静态工具类)
- Javascript类与静态类的实现(续)
- php将数据库中所有内容生成静态html文档的代码
- 浅析PHP的静态成员函数效率更高的原因
- Django静态资源URLSTATIC_ROOT的配置方法
- 分享一个常用的javascript静态类