> 技术笔记 > 帝国cms自定义栏目伪静态实现方法

帝国cms自定义栏目伪静态实现方法

帝国cms自定义栏目伪静态实现方法

 

伪静态规则

location ~* /top/|/heji/|/e/{

    break;

}
location ~* {
rewrite ^/([0-9a-zA-Z-/]+)/([_0-9]*).html$ /e/action/show.php?classid=$1&id=$2;
rewrite ^/([0-9a-zA-Z-/]+)/(|index.html|index_[0-9]+.html)$ /e/action/list.php?classid=$1&page=$2;

  rewrite ^(.*)game/list-0-0-0-(.+?)-(.+?)-(.+?)-0-(.+?).html$ $1/e/action/ListInfo.php?classid=18&ph=1&tempid=12&line=28&yxlx=$2&ticai=$3&pingtai=$4&page=$5&orderby=newstime;
  rewrite ^(.*)game/list-0-0-0-(.+?)-(.+?)-(.+?)-1-(.+?).html$ $1/e/action/ListInfo.php?classid=18&ph=1&tempid=12&line=28&yxlx=$2&ticai=$3&pingtai=$4&page=$5&orderby=onclick;
}

 

支付宝赞助
微信赞助