zoukankan      html  css  js  c++  java
  • 黄聪:主目录安装Wordpress,根目录安装Discus,httpd.ini如何写?

    主目录/安装wordpress

    根目录bbs/安装Discus!

    httpd.ini规则:

    [ISAPI_Rewrite]

    # 3600 = 1 hour
    CacheClockRate 3600
    RepeatLimit 32
    RewriteRule /httpd(?:.ini|.parse.errors) / [F,I,O]


    RewriteRule /software-files/(.*) /software-files/$1 [L]
    RewriteRule /images/(.*) /images/$1 [L]
    RewriteRule /sitemap.xml /sitemap.xml [L]
    RewriteRule /favicon.ico /favicon.ico [L]
    # For file-based wordpress content (i.e. theme), admin, etc.
    RewriteRule /wp-(.*) /wp-$1 [L]
    # For normal wordpress content, via index.php
    RewriteRule ^/$ /index.php [L]
    RewriteRule /(?!bbs)(.*) /index.php/$1 [L]

    #bbs
    RewriteRule ^/home/(space|network)-(.+)\.html$ /home/$1\.php\?rewrite=$2 [L]
    RewriteRule ^/home/(space|network)\.html$ /home/$1\.php [L]
    RewriteRule ^/home/([0-9]+)$ /home/space\.php\?uid=$1 [L]

    RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)\?*(.*)$ $1/archiver/index\.php\?$2&$4
    RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4
    RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
    RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/space\.php\?$2=$3&$4
    RewriteRule ^(.*)/tag-(.+)\.html\?*(.*)$ $1/tag\.php\?name=$2&$3



  • 相关阅读:
    ASP.NET2.0中用Gridview控件操作数据
    有关petShop的几篇文章
    用多活动结果集优化ADO.NET2.0数据连接
    设计数据层组件并在层间传递数据
    google的语法?
    PHP导出Excel方法
    header ContentType类型
    40条优化php代码的小实例
    strstr 不错的技巧
    PHP 截取字符串专题
  • 原文地址:https://www.cnblogs.com/huangcong/p/2324615.html
Copyright © 2011-2022 走看看