【发布时间】:2011-02-17 22:59:05
【问题描述】:
我们最近进行了一些内容重组,我想在 web.config 中加入一些重定向规则,以便旧页面的书签可以路由到它们的新位置/页面。
我尝试使用这种方法:
<location path="~/product/productA.aspx">
<system.webServer>
<httpRedirect enabled="true" destination="~/product/category/productA.aspx" exactDestination="false" childOnly="true" httpResponseStatus="Permanent" />
</system.webServer>
</location>
但是当我转到“http://www.oursite.com/product/productA.aspx”时,我得到的只是我们的 http 404 页面。
是我做错了什么,还是单声道不支持 web.config 中的 httpRedirect 标记?
谢谢你:)
【问题讨论】:
标签: asp.net redirect mono web-config