IT俱乐部-城北日常经验分享

帝国CMS伪静态Nginx 自定义规则修改

浏览: 2051    评论: 0

帝国CMS伪静态Nginx 自定义规则修改


直接上重点,


rewrite ^([^\.]*)/([0-9]+)-([0-9]+)/$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last;

rewrite ^([^\.]*)/([0-9]+)-0/([0-9]+)\.html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last;

rewrite ^([^\.]*)/infotype-(.+?)-(.+?)\.html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last;

rewrite ^([^\.]*)/tags-(.+?)-(.+?)\.html$ $1/e/tags/index.php?tagname=$2&page=$3 last;

rewrite ^([^\.]*)/comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)\.html$  $1/e/pl/index\.php\?doaction=$2&classid=$3&id=$4&page=$5&myorder=$6&tempid=$7 last;

if (!-e $request_filename) {

return 404;

}


个人收藏备用

全文详见:http://it-club.cn/post/190.html

TOP

评论列表


发表评论
来宾的头像

TOP

网站分类

TOP

站点信息

  • 文章总数:738
  • 页面总数:1
  • 分类总数:3
  • 标签总数:24
  • 评论总数:270
  • 浏览总数:10021107