【发布时间】:2019-07-02 03:59:48
【问题描述】:
我正在尝试创建要发送的 URL 重写规则:
www.mycompany.com/file.aspx?someQueryString
或
www.mycompany.com/fileXYZ.aspx?someQueryString
到
www.subdomain.mycompany.com/file.aspx?someQueryString
或
www.subdomain.mycompany.com/fileXYZ.aspx?someQueryString
我写了这条规则:
<rule name="MyPageRewrite" stopProcessing="true">
<match url="(.*)(file[a-zA-Z]*\.aspx)" />
<action type="Rewrite" url="http://subdomain.mycompany.com/{R:1}" />
</rule>
匹配表达式似乎有效,但目标无效?怎么了?
【问题讨论】:
标签: asp.net iis url-rewriting