科技常识:nginx 伪静态化rewrite规则

2021-04-13 18:04:30
导读 今天小编跟大家讲解下有关科技常识:nginx 伪静态化rewrite规则,相信小伙伴们对这个话题应该也很关注吧,小编也收集到了有关科技常识:ng

今天小编跟大家讲解下有关科技常识:nginx 伪静态化rewrite规则,相信小伙伴们对这个话题应该也很关注吧,小编也收集到了有关科技常识:nginx 伪静态化rewrite规则的相关资料,希望小伙伴会喜欢也能够帮助大家。

复制代码 代码如下:location / { ###以下为PHPCMS 伪静态化rewrite规则 rewrite ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&page=$3; rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&page=$3; rewrite ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2; ####以下为PHPWind 伪静态化rewrite规则 rewrite ^(.*)-htm-(.*)$ $1.php?$2 last; rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last; } 本文出自 “linux进阶屋” 博客

来源:爱蒂网

免责声明:本文由用户上传,如有侵权请联系删除!

猜你喜欢

最新文章