PHPCMS V9 nginx 伪静态规则

PHPCMS V9 nginx 伪静态规则
NND 让我找的好累啊。搞了大半夜。
rewrite ^/show-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last;
rewrite ^/content-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last;
rewrite ^/list-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=lists&catid=$1&page=$2 last;
rewrite ^/tag-([^\.]*)-([0-9]+)-([0-9]+).html /index.php?m=content&c=tag&catid=$2&tag=$1&page=$3 last;
rewrite ^/comment-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=comment&c=index&a=init&commentid=content_$1-$2-$3 last;
rewrite ^/([^\.]*).html /index.php?m=member&c=index&a=$1 last;

第一条
作用 内容页展示
效果 show-12-120-1.html show-栏目id-文章id-页数.html
第二条
作用 还是内容页展示
效果 content-12-120-1.html content-栏目id-文章id-页数.html
第三条
作用 列表页展示
效果 list-12-2.html show-栏目id-页数.html
第四条
作用 关键词列表页展示
效果 tag-%CA%B1%C9%D0%BC%D2%BE%D3%B7%BD%B0%B8-12-1.html show-关键词-栏目id-页数.html
第五条
作用 评论页展示
效果 comment-12-120-1.html comment-栏目id-文章id-页数.html
第六条
作用 功能页展示
效果 register.html register.html


建议第六条不要用了 纯粹把你的注册和登录伪静态化 不如自己写静态页面的 好吧?
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值