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

          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開源團隊 閱讀(1158) 評論(0)  編輯  收藏 所屬分類: 技術類
          主站蜘蛛池模板: 治多县| 防城港市| 万全县| 当阳市| 砚山县| 磐安县| 蓬安县| 五家渠市| 惠安县| 焦作市| 德昌县| 曲松县| 遵义县| 兴义市| 峨眉山市| 嵩明县| 永福县| 和平县| 井冈山市| 崇仁县| 汪清县| 雷山县| 西林县| 海宁市| 通榆县| 屏东市| 晋宁县| 庆安县| 武威市| 连城县| 大洼县| 化州市| 大宁县| 通山县| 广平县| 江山市| 涡阳县| 应城市| 丹凤县| 阜康市| 志丹县|