源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

nginx 伪静态化rewrite规则

  • 时间:2021-07-07 04:56 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:nginx 伪静态化rewrite规则
[u]复制代码[/u] 代码如下:
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进阶屋” 博客
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部