[英]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.