q789321 发表于 2018-11-9 11:24:23

nginx下伪静态化rewrite规则

location / {  ###以下为PHPCMS 伪静态化rewrite规则
  rewrite ^(.*)show-(+)-(+)\.html$ $1/show.php?itemid=$2&page=$3;
  rewrite ^(.*)list-(+)-(+)\.html$ $1/list.php?catid=$2&page=$3;
  rewrite ^(.*)show-(+)\.html$ $1/show.php?specialid=$2;
  ####以下为PHPWind 伪静态化rewrite规则
  rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;
  rewrite ^(.*)/simple/(+\.html)$ $1/simple/index.php?$2 last;
  }

页: [1]
查看完整版本: nginx下伪静态化rewrite规则