• 关于destoon6.0下的ngnix伪静态


          关于destoon6.0下的ngnix伪静态配置

      

    ##rewrite nginx 
    rewrite '(.*).(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)' /404.php last; 
    rewrite '(.*)/(admin|cache|editor|file|include|lang|module|skin|template)/(.*).php(.*)' /404.php last; 
    rewrite '(.*)-htm-(.*)' $1.php?$2 last; 
    rewrite '(.*)/show-([0-9]+)([-])?([0-9]+)?.html' $1/show.php?itemid=$2&page=$4 last; 
    rewrite '(.*)/list-([0-9]+)([-])?([0-9]+)?.html' $1/list.php?catid=$2&page=$4 last; 
    rewrite '(.*)/([A-za-z0-9_-]+)-c([0-9]+)-([0-9]+).html' $1/list.php?catid=$3&catdir=$2&page=$4 last; 
    rewrite '(.*)/show/([0-9]+)/([0-9]+)?([/])?' $1/show.php?itemid=$2&page=$3 last; 
    rewrite '(.*)/list/([0-9]+)/([0-9]+)?([/])?' $1/list.php?catid=$2&page=$3 last; 
    rewrite '(.*)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html' $1/index.php?moduleid=$2&catid=$3&itemid=$4&page=$5 last; 
    rewrite '(.*)/([a-z]+)/(.*).shtml' $1/$2/index.php?rewrite=$3 last; 
    rewrite '(com)/([a-z0-9_-]+)/([a-z]+)/(.*).html' index.php?homepage=$2&file=$3&rewrite=$4 last; 
    rewrite '(com)/([a-z0-9_-]+)/([a-z]+)([/])?' index.php?homepage=$2&file=$3 last; 
    rewrite '(com)/([a-z0-9_-]+)([/])?' index.php?homepage=$2 last; 
    rewrite '(.*)/kw-([A-za-z0-9]+).html' $1/search.php?kw=$2 last; 
    rewrite 'template/(.*).htm' /404.php last; 
    location /blog/ { if (!-e $request_filename){ rewrite ^/blog/(.*)$ /blog/index.php?s=$1 last; break; } }
    
  • 相关阅读:
    程序的编写/数据结构和操作/容器的应用/查询程序
    c++ 输入流
    转 中断和事件
    库函数, string , integer to char
    转义字符 / ascll表
    notepad change background color
    PlayMark视频教程
    unity3d webplayer 16:9 居中显示模板
    Unity3d 组件设计的思考[转]
    读取到系统字体
  • 原文地址:https://www.cnblogs.com/68xi/p/11834219.html
Copyright © 2020-2023  润新知