我想从确切的 URL 请求重定向到该域中的新站点。
我需要重定向来自的请求
www.example.com/site111/default.aspx?configX.xml
(此站点使用不同的配置文件来加载内容)
至
www.example.com/site222/default.aspx
问题是我需要保留访问权限 www.example.com.au/site111/default.aspx 所以我不能只进行 http 重定向,因为没有名为 default.aspx?configX.xml 的文件
我想我需要使用 URL 重写重定向 有人可以帮助我使用 Web 配置的语法吗?我无法让它工作
0 模块已安装并使用了上述语法,但仍然无法正常工作,
如果我在模块上使用测试功能,它说字符串匹配,非常困惑,实际的 webconfig 部分在这里
<rewrite>
<rules>
<rule name="Redirect2" stopProcessing="true">
<match url="\/nrmmaps\/default.aspx\?config=nrmproject.xml$" />
<action type="Redirect" url="/nrmproject/default.aspx" redirectType="Permanent"/>
</rule>
</rules>
</rewrite>
旧链接是
http://se.nrmspace.com.au/nrmmaps/default.aspx?config=nrmproject.xml
我希望它重新定向到
http://se.nrmspace.com.au/nrmproject/default.aspx
你知道为什么这不起作用吗?