【发布时间】:2017-03-23 03:53:28
【问题描述】:
如何在 IIS7 中重定向(301)? 我正在尝试使用 web.config 中的重写规则将链接表单“domainA.com/link_A”重定向到“domainB.com/link_B”。如何对选定的链接执行此操作? 对吗?
<rule name="redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^domainA.com/link_A$ />
</conditions>
<action type="Redirect" url="http://www.domainB.com/link_B{R:0}" redirectType="Permanent" />
</rule>
【问题讨论】:
标签: redirect mod-rewrite iis web-config