nginx伪静态规则怎么定义
作者:SoftHope
时间:2025-04-05
浏览:1
1、nginx伪动态划定规矩rewrite^(.*)/tags.html$1/tags.php;rewrite^(.*)/tags/(.*)-1.html$1/tags.php?/$2/$3;或rewrite^([^\.]*)/tags.html$1/tags.php;rewrite^([^\.]*)/tags/(.*)-([0-9]+).html$1/tags.php?/$2/$3;2、.htaccess文件伪音讯规定RewriteBase/RewriteRule^tags\.html$/tags.ph
本文目录
1、nginx伪动态划定规矩
rewrite ^(.*)/tags.html $1/tags.php; rewrite ^(.*)/tags/(.*)-1.html $1/tags.php?/$2/$3;
或
rewrite ^([^\.]*)/tags.html $1/tags.php; rewrite ^([^\.]*)/tags/(.*)-([0-9]+).html $1/tags.php?/$2/$3;
2、.htaccess文件伪音讯规定
RewriteBase / RewriteRule ^tags\.html$ /tags.php$1 RewriteRule ^tags/(.*)-([0-9]+).html$ /tags.php?/$1/$2
3、IIS下网站.config文件,伪消息规则:
4、httpd.ini 文件伪动态规定
RewriteRule ^(.*)/tags\.html $1/tags\.php RewriteRule ^(.*)/tags/(.*)-([0-9]+).html $1/tags\.php\?$2/$3
作者最新文章
office安装工具箱 常用功能介绍
2026-11-02 16:29
悟空浏览器怎么彻底清理浏览器配置文件
2026-11-02 10:28
BOBO浏览器安卓手机版下载与横屏设置教程
2026-10-30 17:48
paragon ntfs for mac 只读怎么操作
2026-10-23 20:31
上一篇:
U盘重装Win10系统:简单操作教程
热门文章
更多
精品专题
更多
Mac软件
更多
WINDOWS
更多

































