[英]Simple IIS 7 Rewrite rule not working
我看過幾個博客和問題,我認為這些博客和問題與我的工作相符,但沒有用。 URL重寫模塊已安裝。 保存此web.config文件后,我將重置IIS。 我嘗試過使用IIS的GUI以及相同的結果。 還有其他我不知道的東西嗎?
<rewrite>
<rules>
<rule name="Redirect domain.com to www" patternSyntax="ECMAScript" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^domain.us$" />
</conditions>
<action type="Redirect" url="http://www.domain.us/{R:0}" />
</rule>
</rules>
</rewrite>
好的,我忘記將綁定domain.us添加到該站點。 哇!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.