Discuz!-phpBB 過渡插件

全世界最多討論區架設者選用的討論區系統之一。

版主: hamu278, 銘仔, Puff

版面規則
  • 發問時注明 phpBB 版本及之前做過的動作。

Discuz!-phpBB 過渡插件

文章bananasims » 2008-10-15, 00:04

因為 phpBB 既 URL 同埋 Discuz! 唔同,我整咗呢個過渡插件。呢個過渡插件會將全部 Discuz! 既舊網址重定向。
我唔用 .htaccess Rewrite URL(即係直程唔 direct,就咁顯示),因為 Rewrite URL 會有雙重網址同埋啲 bot 唔會當係舊 URL。

專為 Discuz! 4.1 設計,Discuz! 5.0 或以上請自行修改。

.htaccess 加
代碼: 選擇全部
RewriteEngine On

# old discuz urls
RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ discuz.php?$1=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ discuz.php?tid=$1
RewriteRule ^viewthread\.php(.*)$ discuz.php$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ discuz.php?fid=$1
RewriteRule ^forumdisplay\.php(.*)$ discuz.php$1
RewriteRule ^profile-uid-(.+)\.html$ discuz.php?uid=$1
RewriteRule ^viewpro\.php(.*)$ discuz.php$1


redirect discuz urls.zip 解壓,並且開啟 discuz.php
代碼: 選擇全部
$url = 'http://bbs.i-circle.net/';


http://bbs.i-circle.net/ 改做你既網址。注意:最後要有斜號。
上傳去根資料夾,完成。
您沒有權限檢視這篇文章所附加的檔案。
影像.從心 At the heart of the ímage
bananasims
太陽會員
 
文章: 13541
註冊時間: 2005-09-22, 00:00

Re: Discuz!-phpBB 過渡插件

文章Freeman » 2008-10-15, 00:23

需唔需要phpBB本身果D
viewforum.php之類?

如果你咁整唔會404咩 :oops:

--------------------------------
我GET到啦 :oops:
Freeman
地球會員
 
文章: 1680
註冊時間: 2008-06-25, 21:04

Re: Discuz!-phpBB 過渡插件

文章Freeman » 2008-10-15, 00:26

問另一樣 :oops:

下面兩句入面*同+有咩分別

RewriteRule ^profile-(username|uid)-(.*)\.html$ viewpro.php?$1=$2

RewriteRule ^profile-(username|uid)-(.+)\.html$ discuz.php?u=$2
Freeman
地球會員
 
文章: 1680
註冊時間: 2008-06-25, 21:04

Re: Discuz!-phpBB 過渡插件

文章bananasims » 2008-10-15, 00:28

唔熟 regxp,唔清楚
影像.從心 At the heart of the ímage
bananasims
太陽會員
 
文章: 13541
註冊時間: 2005-09-22, 00:00

Re: Discuz!-phpBB 過渡插件

文章Freeman » 2008-10-15, 00:33

萬一已經用左靜態化咪唔用得呢個? :oops:
Freeman
地球會員
 
文章: 1680
註冊時間: 2008-06-25, 21:04

Re: Discuz!-phpBB 過渡插件

文章bananasims » 2008-10-15, 12:22

用得 :oops:
影像.從心 At the heart of the ímage
bananasims
太陽會員
 
文章: 13541
註冊時間: 2005-09-22, 00:00

Re: Discuz!-phpBB 過渡插件

文章Freeman » 2008-10-15, 23:26

明白晒 :P
Freeman
地球會員
 
文章: 1680
註冊時間: 2008-06-25, 21:04

Re: Discuz!-phpBB 過渡插件

文章bananasims » 2008-11-18, 17:04

已經全面更新,支援 archiver/fid-1.htmlarchiver/tid-1.htmlthread-1-1-1.htmlviewthread.php?tid=1forum-1-1.htmlforumdisplay.php?fid=1profile-uid-1.htmlviewpro.php?uid=1
影像.從心 At the heart of the ímage
bananasims
太陽會員
 
文章: 13541
註冊時間: 2005-09-22, 00:00


回到 [B1a] phpBB



誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 6 位訪客

cron