【发布时间】:2015-06-18 07:32:39
【问题描述】:
我在重写部分非常菜鸟,希望有人可以帮助我。 现在我正在使用这个
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTPS}" negate="true" pattern="^on$" ignoreCase="false" />
</conditions>
<action type="Redirect" url="https://{SERVER_NAME}/{R:1}" redirectType="Found" />
</rule>
</rules>
</rewrite>
这个只能把http改成https,现在我希望它也能支持把www改成非www。我应该怎么做?
【问题讨论】: