phpcm nginx 伪静态文件

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 

posted @ 2014-02-26 11:23  为了这有限的生命  阅读(613)  评论(0编辑  收藏  举报