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

          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開源團隊 閱讀(1152) 評論(0)  編輯  收藏 所屬分類: 技術類
          主站蜘蛛池模板: 寿宁县| 蒙城县| 乳山市| 台山市| 闽清县| 无极县| 香格里拉县| 贵德县| 武平县| 澄江县| 武强县| 余干县| 德州市| 聂拉木县| 开鲁县| 东港市| 峡江县| 桑植县| 廉江市| 淄博市| 武平县| 苏尼特右旗| 邯郸市| 沾益县| 瑞昌市| 乡宁县| 洛扎县| 泗洪县| 平山县| 黎平县| 靖江市| 德昌县| 漠河县| 垫江县| 深水埗区| 义乌市| 桑植县| 宜州市| 健康| 大兴区| 黄浦区|