• 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 

  • 相关阅读:
    __all__
    python内置函数
    qZnF新存马王至许观制两利各
    PHP中获取当前页面的完整URL
    DedeCms用tag调用全站相关文章
    dedecms如何利用tag来调取相关文章
    SQL Server TempDB
    SQL Server Pivot 隐藏group
    Rebind and Rewind in Execution Plans
    batch 数字进制的问题
  • 原文地址:https://www.cnblogs.com/suihui/p/3568696.html
Copyright © 2020-2023  润新知