zoukankan      html  css  js  c++  java
  • 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 

  • 相关阅读:
    辅助工具链接
    参考资料链接
    oracle sql 查询前十条数据
    oracle sql 按照汉字规则排序
    oracle sql 修改timestamp数据
    eclipse闪退
    js 数组Array
    面试题:树的子结构
    面试题:二叉树中和为某一路径
    面试题:二叉搜索树的后序遍历
  • 原文地址:https://www.cnblogs.com/suihui/p/3568696.html
Copyright © 2011-2022 走看看