【发布时间】:2013-06-11 05:11:44
【问题描述】:
我需要重定向
www.domain.de 到 https://domain.de -作品
http://www.domain.de 到 https://domain.de -作品
http://domain.de 到 https://domain.de - 不工作
rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^www\.(.+)$" />
</conditions>
<action type="Redirect" url="https://{C:1}/{R:1}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
【问题讨论】:
-
我假设 rewrite 正确地位于其开始标签内,即使在此处的代码中缺少开始 V 字形。您能详细说明“导入规则 1”吗?