discuz 7.2版如何設定論壇靜態化

(1) 將下列的文字,複製貼上,存成 .htaccess檔,放到空間的根目錄。
 
RewriteEngine On
RewriteBase /
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
 
(2) 如果論壇的根目錄並不是空間的根目錄,例如是bbs,
 則要把 RewriteBase /改成 RewriteBase /bbs 
 
(3) 並且在discuz論壇中,開啟「偽靜態」選項
【全局】→【優化設置】→【搜尋引擎優化】
 
  • 2 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Související články

為什麼我的程式,寄出的驗證信,對方都收不到呢?

Q: 為什麼我的程式,寄出的驗證信,對方都收不到呢?A:  建議將程式的smtp 改用 gmail smtp 試試。...

我最近沒有去動我的網站,但是我的discuz論壇卻一片空白。

Discuz系統由於有緩存的設計。論壇的管理員必須設定,定期去清理「緩存」。否則有時會導致這種,頁面全部空白的問題。

使用opencart發email,無法夾帶圖片

Q:我使用opencart的發email功能,來發給客戶的edm,但是Email裡無法夾帶圖片?A:請使用chrome或是firefox作為您的browser,目前已知使用IE會有無法夾帶圖片的問題。

為什麼,我一直無法登入論壇?

Q: 為什麼,我一登入論壇,就會被登出呢? A: 1. 如果不是乾淨版的論壇套裝程式,請檢查其插件問題或設定檔的路敬,或是得安裝一套乾淨版測試看看。   ...

discuz 發表文章,出現 500 Internal Server Error。

Q: 我有承租unethost的虛擬主機,在discuz發表文章後,會出現500 Internal Server Error,並且沒有加入文章。A:...