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>