DZ轉(zhuǎn)到PW后,SS添加rewrite偽靜態(tài)規(guī)則_PhpWind教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
DZ轉(zhuǎn)到PW以后,需要在服務(wù)器端加入重寫規(guī)則。
方法:將以下規(guī)則代碼添加到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 為論壇目錄,請根據(jù)實際情況修改。如果是根目錄,直接去掉 /pw6
修改完畢,保存,重啟服務(wù)器即可。
查看更多 PhpWind教程 PhpWind模板風格
相關(guān)PhpWind教程:
- PhpWind教程:PHPWind forum V7.5 SP1 使用與修復說明
- PhpWind教程:PHPWind Forum V7.5 升級教程
- PHPWind7.3 升級7.3.2 圖文教程
- PhpWind教程:sitemap生成問題
- PhpWind教程:熱榜排行 for 75
- PHPwind 6.3.2升級至PHPwind 7.3.2 圖文教程
- PHPWind 7.0 升級至PHPwind 7.3.2 圖文教程
- PHPWind 7.0 升級到PHPwind v7.3 圖文教程
- PHPWind 6.3.2升級到 PHPwind v7.3 圖文教程
- PHPWind6.3.2升級PHPWind7.0說明教程
- PhpWind教程:PHPWind6.3(6.3rc、6.3) to PHPWind6.3.2升級教程
- PhpWind教程:PHPWind6.x(6.0rc、6.0) to PHPWind6.3.2升級教程
PhpWind教程教程Rss訂閱Cms教程搜索
PhpWind教程推薦
- PhpWind教程:修改左欄寬度并居中
- PhpWind教程:Can't connect to MySQL server on 'dbhost'
- PhpWind教程:安裝PHPWind出現(xiàn)以下問題
- PhpWind教程:本地安裝PW論壇后,后臺不顯示驗證碼
- PhpWind教程:郵件群發(fā)設(shè)置
- PhpWind教程:PHPWind Forum V7.3.2用戶手冊
- PhpWind教程:MySql遠程連接設(shè)置
- PHPWind轉(zhuǎn)換教程:DVBBS 8.2 SQL版 轉(zhuǎn)換到 PHPWind 7.3.2
- PhpWind教程:PHPWind Forums 新功能之邀請碼在線支付功能(6.3)
- PhpWind教程:預設(shè)帖子格式設(shè)置教程
- 相關(guān)鏈接:
- 教程說明:
PhpWind教程-DZ轉(zhuǎn)到PW后,SS添加rewrite偽靜態(tài)規(guī)則
。