5
    <rule name="blog" stopProcessing="true">
      <match url="en/blog.aspx?Id=9" />
      <action type="Redirect" url="http://www.mynewurl.com" redirectType="Permanent" />
    </rule>

「en/blog.aspx」はリダイレクトできますが、「en/blog.aspx?Id=9」しかリダイレクトできません。

何か案は?

4

1 に答える 1

11

最後に解決策を見つけました:

/en/blog.aspx?Id=9 はhttp://www.newurl.comにリダイレクトします。

    <rule name="blog" stopProcessing="true">
      <match url="en/blog.aspx$" />
      <conditions>  
        <add input="{QUERY_STRING}" pattern="Id=9" />  
    </conditions>  
      <action type="Redirect" url="http://www.newurl.com" redirectType="Permanent" />
    </rule>

ここで解決策を見つけました: IIS 7 で 301 リダイレクトが機能しない

于 2012-06-14T18:34:03.313 に答える