海盜云商的windows2008 2012系統(tǒng)偽靜態(tài)腳本,支持iis7.5 iis8
一些windows版香港虛擬主機(jī)用戶需要用到這個專用的windows偽靜態(tài)專用腳本,特地放出來。
使用方法,將以下代碼,復(fù)制后,加入到
<system.webServer> </system.webServer>
兩個之間即可。
代碼如下:
<rewrite> <rules> <rule name="lists"> <match url="^(.*/)*lists-([0-9]+).html\?*(.*)[ DISCUZ_CODE_0 ]quot; /> <action type="Rewrite" url="{R:1}/index.php\?m=goods&c=index&a=lists&id={R:2}&{R:3}" /> </rule> <rule name="goods"> <match url="^(.*/)*goods-([0-9]+).html\?*(.*)[ DISCUZ_CODE_0 ]quot; /> <action type="Rewrite" url="{R:1}/index.php\?m=goods&c=index&a=detail&sku_id={R:2}&{R:3}" /> </rule> <rule name="brand"> <match url="^(.*/)*brand-([0-9]+).html\?*(.*)[ DISCUZ_CODE_0 ]quot; /> <action type="Rewrite" url="{R:1}/index.php\?m=goods&c=index&a=brand_list&id={R:2}&{R:3}" /> </rule> <rule name="buyer"> <match url="^(.*/)*buyer.html\?*(.*)[ DISCUZ_CODE_0 ]quot; /> <action type="Rewrite" url="{R:1}/index.php\?m=member&c=index&a=index&{R:2}" /> </rule> <rule name="help_lists"> <match url="^(.*/)*help-lists-([0-9]+).html\?*(.*)[ DISCUZ_CODE_0 ]quot; /> <action type="Rewrite" url="{R:1}/index.php\?m=misc&c=index&a=help_lists&{R:2}" /> </rule> <rule name="help_etail"> <match url="^(.*/)*help-detail-([0-9]+).html\?*(.*)[ DISCUZ_CODE_0 ]quot; /> <action type="Rewrite" url="{R:1}/index.php\?m=misc&c=index&a=help_detail&id={R:2}&{R:3}" /> </rule> <rule name="article_lists"> <match url="^(.*/)*article-lists-([0-9]+).html\?*(.*)[ DISCUZ_CODE_0 ]quot; /> <action type="Rewrite" url="{R:1}/index.php\?m=misc&c=index&a=article_lists&category_id={R:2}&{R:3}" /> </rule> <rule name="article_detail"> <match url="^(.*/)*article-detail-([0-9]+).html\?*(.*)[ DISCUZ_CODE_0 ]quot; /> <action type="Rewrite" url="{R:1}/index.php\?m=misc&c=index&a=article_detail&id={R:2}&{R:3}" /> </rule> </rules> </rewrite>