通过web.config从旧站点创建重定向

时间:2014-02-04 14:14:49

标签: asp.net iis-7 asp-classic web-config

我需要通过web.config文件将旧网站的一些旧链接重定向到我们的新网站。 到目前为止我已经设置了这个,但它导致我们网站上出现500错误。

这是web.config:

                <location path="about.aspx">
                <system.webServer>
                <httpRedirect enabled="true" destination="http://www.ite-exhibitions.com/About" httpResponseStatus="Permanent" />
                </system.webServer>
                </location>
                <location path="investor_relations.aspx">
                <system.webServer>
                <httpRedirect enabled="true" destination="http://www.ite-exhibitions.com/Investor-Relations" httpResponseStatus="Permanent" />
                </system.webServer>
                </location>
                <location path="events.aspx">
                <system.webServer>
                <httpRedirect enabled="true" destination="http://www.ite-exhibitions.com/Event-Calendar" httpResponseStatus="Permanent" />
                </system.webServer>
                </location>

还尝试将其更新为此并且仍然没有乐趣。任何人都有任何想法?

1 个答案:

答案 0 :(得分:0)

asp classic不支持web.config

相关问题