官方论坛产品帮助刷图视频问题反馈

Froxlor使用技巧(三)伪静态

发表于 秦海传媒

    添加伪静态:

    利用nginx的配置优先级,在配置文件添加正则匹配:

    location ~* \.html$ {
    rewrite "^(.*)sort_([0-9]+)_([0-9]+).html$" $1sort.php?sortid=$2&page=$3 last;
    rewrite "^(.*)over_([0-9]+).html$" $1over.php?page=$2 last;
    rewrite "^(.*)top_(.*)_([0-9]+).html$" $1top.php?topid=$2&page=$3 last;
    rewrite "^(.*)topover_(.*)_([0-9]+).html$" $1topover.php?topid=$2&page=$3 last;
    rewrite "^(.*)book_([0-9]+).html$" $1book.php?bookid=$2 last;
    rewrite "^(.*)down_(.*)_([0-9]+).html$" $1down.php?bookid=$3&type=$2 last;
    rewrite "^(.*)readend_([0-9]+).html$" $1readend.php?bookid=$2 last;
    rewrite "^(.*)read_([0-9]+)_([0-9]+).html$" $1read.php?cutid=$2&bookid=$3 last;
    rewrite "^(.*)chapter_([0-9]+)_([0-9]+)_([0-9]+).html$" $1chapter.php?cutid=$2&bookid=$3&chapterid=$4 last;
    }
    
  • 此条目发表在 服务器配置 分类目录。将固定链接加入收藏夹。

Google ADs

除非另有声明,本站文章遵循知识共享署名-非商业性使用 2.5 中国大陆许可协议。 Copyright © 2008-2012 99288.NET.CN.