如鵬網 大學生計算機學習社區

          CowNew開源團隊

          http://www.cownew.com 郵件請聯系 about521 at 163.com

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            363 隨筆 :: 2 文章 :: 808 評論 :: 0 Trackbacks

          1、編寫rewrite腳本,編輯/etc/lighttpd/local.lighttpd.conf內容如下:
          url.rewrite-once = (
                  "^/forum/archiver/((fid|tid)-[\w\-]+\.html)$" => "forum/archiver/index.php?$1",
                  "^/forum/forum-([0-9]+)-([0-9]+)\.html$" => "forum/forumdisplay.php?fid=$1&page=$2",
                  "^/forum/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" => "forum/viewthread.php?tid=$1&extra=page%%53D$3&page=$2",
                  "^/forum/space-(username|uid)-(.+)\.html$" => "forum/space.php?$1=$2",
                  "^/forum/tag-(.+)\.html$" => "forum/tag.php?name=$1"
          )
          這里假設論壇裝在forum目錄下,如果是裝在根目錄下則是:
          url.rewrite-once = (
                  "^/archiver/((fid|tid)-[\w\-]+\.html)$" => "archiver/index.php?$1",
                  "^/forum-([0-9]+)-([0-9]+)\.html$" => "forumdisplay.php?fid=$1&page=$2",
                  "^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" => "viewthread.php?tid=$1&extra=page%%53D$3&page=$2",
                  "^/space-(username|uid)-(.+)\.html$" => "space.php?$1=$2",
                  "^/tag-(.+)\.html$" => "tag.php?name=$1"
          )

          2、重啟lighttpd,重啟方法:/etc/init.d/lighttpd restart

          posted on 2009-05-16 21:41 CowNew開源團隊 閱讀(1159) 評論(0)  編輯  收藏 所屬分類: 技術類
          主站蜘蛛池模板: 柳州市| 贡觉县| 新巴尔虎右旗| 二连浩特市| 壤塘县| 施甸县| 烟台市| 衡水市| 永善县| 沈阳市| 雅安市| 贵阳市| 天祝| 南康市| 肥城市| 志丹县| 平罗县| 运城市| 资中县| 阳东县| 东阳市| 永嘉县| 渑池县| 兴宁市| 河源市| 鄂伦春自治旗| 汕尾市| 江都市| 辽宁省| 南雄市| 大洼县| 垫江县| 万载县| 龙南县| 尼勒克县| 宕昌县| 台东市| 元谋县| 噶尔县| 万全县| 闻喜县|