1.Discuz.
1).上傳httpd.ini文件到虛擬主機(jī)根目錄.
httpd.ini文件內(nèi)容:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)$ $1/archiver/index.php\?$2
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php\?fid=$2&page=$3
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php\?tid=$2&extra=page\%3D$4&page=$3
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/space.php\?$2=$3
RewriteRule ^(.*)/tag-(.+)\.html$ $1/tag.php\?name=$2
RewriteRule ^(.*)/index-(.+)\.html$ $1/index.php\?gid=$2
#RewriteRule ^(.*)/index\.html$ $1/index.php
RewriteRule ^(這里填寫(xiě)您的BBS的安裝目錄,不要帶“/”)/index\.html$ $1/index.php
2.Shopex.
1). 復(fù)制以下內(nèi)容到httpd.ini文件.
httpd.ini文件內(nèi)容:
[ISAPI_Rewrite]
#首頁(yè)
RewriteRule ^(.*)/index.html $1/index.php
RewriteRule ^(.*)/default.html $1/index.php
#商店公告
RewriteRule ^(.*)/bulletin.html $1/index.php\?gOo=article_list.dwt&acat=1
RewriteRule ^(.*)/bulletin_([0-9]+).html $1/index.php\?gOo=article_list.dwt&acat=1&p=$2
#商品分類(lèi)
RewriteRule ^(.*)/catalog.html $1/index.php\?gOo=goods_category.dwt
#全部商品
RewriteRule ^(.*)/list.html $1/index.php\?gOo=goods_search_list.dwt
RewriteRule ^(.*)/list_([0-9]+).html $1/index.php\?gOo=goods_search_list.dwt&p=$2
#會(huì)員中心
RewriteRule ^(.*)/member.html $1/index.php\?gOo=member_home.dwt
#幫助中心與常見(jiàn)問(wèn)題
RewriteRule ^(.*)/faq.html $1/index.php\?gOo=help.dwt&acat=2
RewriteRule ^(.*)/faq_([0-9]+).html $1/index.php\?gOo=help.dwt&acat=2&p=$2
#安全交易
RewriteRule ^(.*)/safe.html $1/index.php\?gOo=help_safe.dwt
#購(gòu)買(mǎi)流程
RewriteRule ^(.*)/howtobuy.html $1/index.php\?gOo=help_buystep.dwt
#如何付款
RewriteRule ^(.*)/howtopay.html $1/index.php\?gOo=help_send.dwt
#聯(lián)系我們
RewriteRule ^(.*)/contactus.html $1/index.php\?gOo=help_contact.dwt
#關(guān)于我們
RewriteRule ^(.*)/aboutus.html $1/index.php\?gOo=help_copyright.dwt
#顧客留言分頁(yè)
RewriteRule ^(.*)/feedback.html $1/index.php\?gOo=shopbbs.dwt
RewriteRule ^(.*)/feedback_([0-9]+).html $1/index.php\?gOo=shopbbs.dwt&p=$2
#友情鏈接
RewriteRule ^(.*)/friendlink.html $1/index.php\?gOo=linkmore.dwt
#用戶注冊(cè)
RewriteRule ^(.*)/register.html $1/index.php\?gOo=register_1.dwt
#忘記密碼
RewriteRule ^(.*)/lostpass.html $1/index.php\?gOo=forget.dwt
#商品詳細(xì)頁(yè)
RewriteRule ^(.*)/product/([0-9]+).html $1/index.php\?gOo=goods_details.dwt&goodsid=$2
RewriteRule ^(.*)/product_([0-9]+).html $1/index.php\?gOo=goods_details.dwt&goodsid=$2
RewriteRule ^(.*)/([0-9]+)_([^.]*).html $1/index.php\?gOo=goods_details.dwt&goodsid=$2
#新聞詳細(xì)頁(yè)
RewriteRule ^(.*)/article_([0-9]+).html $1/index.php\?gOo=help_details.dwt&articleid=$2
RewriteRule ^(.*)/message_([0-9]+).html $1/index.php\?gOo=article_details.dwt&articleid=$2
#分類(lèi)詳細(xì)列表
RewriteRule ^(.*)/catalog_([0-9]+).html $1/index.php\?gOo=goods_search_list.dwt&gcat=$2
RewriteRule ^(.*)/catalog_([0-9]+)_([0-9]+).html $1/index.php\?gOo=goods_search_list.dwt&gcat=$2&p=$3
#收藏商品
RewriteRule ^(.*)/addtofavorites_([0-9]+).html $1/index.php\?gOo=addmembergoods.do&goodsid=$2
#首頁(yè)上的最新,推薦,特價(jià)商品
RewriteRule ^(.*)/list_([a-zA-Z]+).html $1/index.php\?gOo=goods_search_list.dwt>ype=$2
RewriteRule ^(.*)/list_([a-zA-Z]+)_([0-9]+).html $1/index.php\?gOo=goods_search_list.dwt>ype=$2&p=$3