【发布时间】:2011-12-20 21:52:37
【问题描述】:
客户将其网站内容放在其网站的子文件夹中,例如www.customersite.com/content。它已被移至根文件夹,例如www.customersite.com
我们在站点配置中添加了 IIS 301 重定向,如下所示:
<rewrite>
<rules>
<rule name="Redirect to Root" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^customersite.com/content/$" />
</conditions>
<action type="Redirect" url="http://www.customersite.com/{R:0}"
redirectType="Permanent" />
</rule>
</rules>
</rewrite>
该网站的链接看起来像 www.customersite.com/content/?p=12 如果用户在旧的 www.customersite.com/content/?p=12 地址?如果有怎么办?
谢谢!
【问题讨论】:
标签: iis redirect http-status-code-301