您的位置:首页 > 运维架构 > Nginx

phpcm nginx 伪静态文件

2014-02-26 11:23 204 查看
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;


1.去掉最后一行

第一条
作用 内容页展示
效果 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: