我有2个网址 http://test.mysite.com(1)和 http://test.mysite.com/app(2)
我想将请求重定向到(1)到www.othersite.com (2)shuld不被重定向时。
是否可以使用正则表达式重写url?
BR
答案 0 :(得分:0)
是的,可以使用URL重写模块。您的规则如下:
<rule name="Redirect non app" stopProcessing="true">
<match url="^app(.*)" negate="true" />
<action type="Redirect" url="http://www.othersite.com{REQUEST_URI}" />
</rule>