如鵬網(wǎng) 大學(xué)生計(jì)算機(jī)學(xué)習(xí)社區(qū)

          CowNew開源團(tuán)隊(duì)

          http://www.cownew.com 郵件請聯(lián)系 about521 at 163.com

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

          1、編寫rewrite腳本,編輯/etc/lighttpd/local.lighttpd.conf內(nèi)容如下:
          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"
          )
          這里假設(shè)論壇裝在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開源團(tuán)隊(duì) 閱讀(1151) 評論(0)  編輯  收藏 所屬分類: 技術(shù)類
          主站蜘蛛池模板: 呈贡县| 双城市| 新和县| 镇江市| 佛山市| 岑溪市| 白水县| 汉川市| 葵青区| 宁化县| 大荔县| 六安市| 阳山县| 山西省| 德兴市| 太白县| 阿拉尔市| 金华市| 河池市| 威远县| 天水市| 承德县| 洛南县| 隆子县| 松潘县| 龙海市| 德兴市| 延寿县| 凤翔县| 焦作市| 婺源县| 东乌珠穆沁旗| 宁都县| 迁安市| 华宁县| 枣庄市| 吴堡县| 岢岚县| 洛阳市| 屏东市| 桐城市|