【问题标题】:IIS 10 URL redirect from one domain to anotherIIS 10 URL 从一个域重定向到另一个域
【发布时间】:2020-10-01 04:24:23
【问题描述】:

我想将特定站点从一个域重定向到另一个域,并且我尝试了以下 URL 重定向。不知道我哪里出错了。

我在http://www.a.b.com/myapp/index.aspx 有一个应用程序

我想把它重定向到 http://www.a.c.com/myapp/index.aspx

<rule name="testredirect" patternSyntax="ECMAScript" stopProcessing="true">
    <match url="^myapp/index.aspx$" />
    <action type="Redirect" url="http://www.a.c.com/{R:0}" />
    <conditions>
          <add input="{HTTP_HOST}" pattern="^www.a.b.com$" />
    </conditions>
</rule>

【问题讨论】:

标签: redirect url-rewriting iis-10 url-rewrite-module


【解决方案1】:

这条规则对我来说非常有效。请尝试清理浏览器缓存并发布您的详细错误消息。请确保您在正确的位置运行规则并已启用。

另外,请检查传入的请求是否到达正确的应用程序池。

【讨论】:

    猜你喜欢
    • 2013-08-04
    • 2018-07-28
    • 2015-10-24
    • 1970-01-01
    • 2013-05-18
    • 2015-08-20
    • 2017-05-18
    • 1970-01-01
    • 2018-10-27
    相关资源
    最近更新 更多