繁体   English   中英

重定向循环-IIS7

[英]Redirect Loop - IIS7

在IIS7上使用重写模块使用以下规则时,将获得重定向循环。

         <rule name="redirect" stopProcessing="true">
      <match url="test" />
      <conditions>
        <add input="{HTTP_HOST}" pattern="domain.com$" />
      </conditions>
      <action type="Redirect" url="http://www.domain.com/new/test" appendQueryString="false" redirectType="Permanent" />
    </rule>

有任何想法吗?

谢谢

看起来您正在尝试从http://domain.com重定向到http://www.domain.com

相信正确的模式应该是“ ^ domain \\ .com $”

这与“ domain.com”的整个HTTP_HOST值匹配

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM