Iis 7 .NET Url重写根Url

Iis 7 .NET Url重写根Url,iis-7,url-rewriting,Iis 7,Url Rewriting,我在IIS7中有以下规则: <rule name="RewriteAll" stopProcessing="true"> <match url="^([^/]+)/?$" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_

我在IIS7中有以下规则:

    <rule name="RewriteAll" stopProcessing="true">
      <match url="^([^/]+)/?$" />
      <conditions>
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
        <add input="{URL}" negate="true" pattern="\.axd$" />
        <add input="{URL}" negate="true" pattern="\.png$" />
        <add input="{URL}" negate="true" pattern="\.gif$" />
        <add input="{URL}" negate="true" pattern="\.jpg$" />
        <add input="{URL}" negate="true" pattern="\.css$" />
        <add input="{URL}" negate="true" pattern="\.js$" />
      </conditions>
      <action type="Rewrite" url="default.aspx?page={R:1}" />
    </rule>


我无法使用规则捕获并发送到例如home.aspx。有人能帮我匹配正则表达式吗?为什么不在DNS服务器上设置一个规范名称(CName)来自动重定向到


请参见

我通过添加以下规则对其进行了修复:

 <rule name="Index Request" enabled="true" stopProcessing="true">
     <match url="^$" />
     <action type="Rewrite" url="index.aspx" logRewrittenUrl="true" />
 </rule>


留下负面反馈,甚至连解释性评论都没有,这是非常糟糕的。同意没有反馈的-ves是很糟糕的。类似的建议也被否决了