IIS 10 URL 从一个域重定向到另一个域 [英] IIS 10 URL redirect from one domain to another

查看:100
本文介绍了IIS 10 URL 从一个域重定向到另一个域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I would like to redirect a specific site from one domain to another and i have tried the following URL redirect. Not sure where i am going wrong.

我在 http://www.abcom/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>

推荐答案

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

The rule work perfectly on my side. Please try to clean browser cache and post your detailed error message. Please ensure you are running the rule in the right place and has been enabled.

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

Besides, please check whether the incoming request is reaching the correct application pool.

这篇关于IIS 10 URL 从一个域重定向到另一个域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆