首页私人日誌百度 BCH app.conf discuz 伪静态 禁止访问目录设置

百度 BCH app.conf discuz 伪静态 禁止访问目录设置

张世龙 08-01 10:53 890次浏览

BCH UrlRewrite App.conf小工具

http://bchtools.bce.baidu.com/

 

handlers:
  - url : /
    script : /index.php
    script : /index.html
    script : /forum.php
    
  - regex_url: ^/bbs/topic-(.+).html$
    script: /bbs/portal.php?mod=topic&topic=$1&%1
  - regex_url: ^/bbs/article-([0-9]+)-([0-9]+).html$
    script: /bbs/portal.php?mod=view&aid=$1&page=$2&%1
  - regex_url: ^/bbs/forum-(w+)-([0-9]+).html$
    script: /bbs/forum.php?mod=forumdisplay&fid=$1&page=$2&%1
  - regex_url: ^/bbs/thread-([0-9]+)-([0-9]+)-([0-9]+).html$
    script: /bbs/forum.php?mod=viewthread&tid=$1&extra=page%3D$3&page=$2&%1
  - regex_url: ^/bbs/group-([0-9]+)-([0-9]+).html$
    script: /bbs/forum.php?mod=group&fid=$1&page=$2&%1
  - regex_url: ^/bbs/space-(username|uid)-(.+).html$
    script: /bbs/home.php?mod=space&$1=$2&%1
  - regex_url: ^/bbs/blog-([0-9]+)-([0-9]+).html$
    script: /bbs/home.php?mod=space&uid=$1&do=blog&id=$2&%1
  - regex_url: ^/bbs/archiver/(fid|tid)-([0-9]+).html$
    script: /bbs/archiver/index.php?action=$1&value=$2&%1
  - regex_url: ^/bbs/([a-z]+[a-z0-9_]*)-([a-z0-9_-]+).html$
    script: /bbs/plugin.php?id=$1:$2&%1
  - regex_url: ^/templets/kb/([a-z0-9]*).htm$ 
    script: /index.php 
  - errordoc: 404 /error/404.html 

百度云 BCH app.conf 设置 解除万恶左键不能复制的问题