zoukankan      html  css  js  c++  java
  • destoon-nginx模版绑定二级域名的伪静态规则之一

    模块绑定二级域名之后,伪静态规则无法生效,模块二级域名信息打开显示404

    可以单独建立一个conf文件,然后在二级域名的配置文件中引用

    规则如下

    location / {
                rewrite ^(.*)/file/(.*).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 ^(.*)/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 ^(.*)/([A-za-z0-9_-]+)-c([0-9]+)-([0-9]+).html$ $1/list.php?catid=$3&page=$4 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;
            }
  • 相关阅读:
    css 样式表的书写顺序
    强大的动画插件。
    百叶窗特效(用move.js库)
    jq基础
    js动态控制表单表格
    js事件对象
    js事件
    js_DOM操作
    小明年龄、成绩、名次的求解问题
    如何获取亿图中的高质量图片?
  • 原文地址:https://www.cnblogs.com/lx0715/p/9984435.html
Copyright © 2011-2022 走看看