海盗云商的windows2008 2012系统伪静态脚本,支持iis7.5 iis8


 一些windows版香港虚拟主机用户需要用到这个专用的windows伪静态专用脚本,特地放出来。

海盗云商系统伪静态,支持windows服务器,IIS7.5 IIS8

使用方法,将以下代码,复制后,加入到

<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&amp;{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>
免实名域名注册