0
我正在嘗試爲非aspx站點執行重寫規則。這只是HTML文件。IIS7重寫規則不起作用
這裏是我在web.config目前所擁有的。我已經嘗試過各種規則,既有集成又有經典的管道模式,但沒有任何工作。
<?xml version="1.0" encoding="UTF-8"?>
<rewrite>
<rules>
<rule name="Redirect domain.com to www" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<conditions>
<add input="{HTTP_HOST}" pattern="eyeswidewhat.net" />
</conditions>
<action type="Redirect" url="http://www.eyeswidewhat.net/{R:0}" />
</rule>
</rules>
</rewrite>