首页 > CMS建站 > PhpCMS > 正文

Nginx下phpcms伪静态规则_rewrite重写

2020-10-10 21:04:09
字体:
来源:转载
供稿:网友

以下为PHPCMS 伪静态化rewrite规则:

  1. location / {
  2. rewrite ^(.*)show-([0-9]+)-([0-9]+)/.html$ $1/show.php?itemid=$2&page=$3
  3. rewrite ^(.*)list-([0-9]+)-([0-9]+)/.html$ $1/list.php?catid=$2&page=$3
  4. rewrite ^(.*)show-([0-9]+)/.html$ $1/show.php?specialid=$2
  5. //Cuoxin.com

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表