iT邦幫忙

0

Discuz 7.2移機問題......

匿名 2011-02-08 15:09:027073 瀏覽

請教各位大大,
我有一部主機用FreeBsd架設Nginx+mysql+discuz 7.2做論壇,
目前打算把論壇移植到Linux+Apache+MySQL底下的環境底下,
以往是直接把論壇整個目錄複製到新主機就幾乎解決了,
但這次複製完成之後卻出現問題如下:
首頁內容都可以看見,但只要點選論壇的各討論區就會山現以下錯誤訊息,能否請各位大大幫忙看一下有可能是那裡發生問題了。

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
220.128.xxx.xxx
Fri Jan 28 18:06:05 2011
Apache/2.2.8 (Linux/SUSE)

bizpro iT邦大師 1 級 ‧ 2011-02-09 08:52:16 檢舉
為什麼要將Nginx換成Apache? Linux+Nginx+MySQL效能才好啊.

1 個回答

4
jacky12j
iT邦新手 4 級 ‧ 2011-02-11 15:53:02
最佳解答

在論壇根目錄下建立一個.htaccess並填入下列內容後存檔再試試看吧......

. RewriteEngine ....

RewriteEngine On

........ /discuz ....................... /discuz ... /

RewriteBase /

Rewrite ........

RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1

RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2

RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2

RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2

RewriteRule ^tag-(.+)\.html$ tag.php?name=$1

我要發表回答

立即登入回答