DZ轉到PW以后,需要在服務器端加入重寫規則。
方法:將以下規則代碼添加到httpd.conf 即可~
RewriteEngine On
ErrorDocument 404 /missing.html
RewriteCond %{SCRIPT_FILENAME} ^/pw6/$ [NC]
RewriteCond %{QUERY_STRING} action-viewthread-tid-(/d+) [NC]
RewriteRule (.*) /%{QUERY_STRING} [NC]
RewriteRule ^/action-viewthread-tid-(/d+) /pw6/read.php?tid=$1
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)simple/([t|f].+).html$ /simple/index.php?$2.html [NC,L]
其中 /pw6 為論壇目錄,請根據實際情況修改。如果是根目錄,直接去掉 /pw6
修改完畢,保存,重啟服務器即可。
新聞熱點
疑難解答
圖片精選