iis7虚拟主机如何实现全站301跳转到带www的网址
新建了一个网站,但是网站不能实现全站301跳转到带www的,主机是iis7的虚机,请问应该如何操作
www.23apk.cn
上面这个是网址
模板使用的是zblog的,下面是web.config规则,懂行的帮一下呗
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="/ Z-BlogPHP Imported Rule" stopProcessing="true">
<match url="^.*?" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:0}" />
</rule>
<rule name="/ Z-BlogPHP Imported Rule index.php" stopProcessing="true">
<match url="^index.php/.*?" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" />
</conditions>
<action type="Rewrite" url="index.php/{R:0}" />
</rule>
<rule name="301" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^23apk.cn$" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="http://www.23apk.cn/{R:1}"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>