Redirect Web.Config(IIS)中的简单301重定向
我在这里遇到了很多类似的问题,但大多数问题都有复杂的参数。我只是想把一个链接重定向到同一个域上的另一个链接。往返链接非常具体,所以我不需要考虑任何通配符 在web.config中,将/locations/100丹佛301重定向到/locations/denver的合适方式是什么?Redirect Web.Config(IIS)中的简单301重定向,redirect,iis,web-config,http-status-code-301,Redirect,Iis,Web Config,Http Status Code 301,我在这里遇到了很多类似的问题,但大多数问题都有复杂的参数。我只是想把一个链接重定向到同一个域上的另一个链接。往返链接非常具体,所以我不需要考虑任何通配符 在web.config中,将/locations/100丹佛301重定向到/locations/denver的合适方式是什么? <configuration> <system.webServer> <rewrite> <rewriteMaps>
<configuration>
<system.webServer>
<rewrite>
<rewriteMaps>
<rewriteMap name="Redirects">
<add key="/test.aspx" value="/test2.aspx" />
<add key="/aboutus.aspx" value="/about" />
</rewriteMap>
</rewriteMaps>
</rewrite>
</system.webServer>
</configuration>
这不起作用,因为它只是一个重写映射,没有任何规则