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 

  • 相关阅读:
    Android logcat命令详解
    使用Dom4j操作XML
    最全面的常用正则表达式大全
    struts.xml配置文件(package,namespace,action)
    ActiveMQ入门实例
    Windows Intel VT-x开启
    Java ArrayList的不同排序方法
    Hibernate面试问题集锦: 概述
    10个有关String的面试问题
    50道Java线程面试题
  • 原文地址:https://www.cnblogs.com/suihui/p/3568696.html
Copyright © 2011-2022 走看看