0
が存在する作品。IIS UrlRewriteは - つだけ実際のファイルは、私が.htmのbrand.aspxには何も転送したい私のweb.configファイル</p> <p>で私は、次のURL書き換えコードを持って
誰が入力した場合にそう
test1.htm
test2.htm
test3.htm
はbrand.aspxに行くだろう。ただし、実際のファイル呼び出し "test1.htm"がサーバーにある場合は、次のURL書き換えが機能し、brand.aspxにリダイレクトされます。ファイルが存在しない場合、brand.aspxにリダイレクトするのではなく、単に404を返します。なぜ誰が知っていますか?どうもありがとう。
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="test" stopProcessing="false">
<match url="(.*)\.htm$" ignoreCase="true" />
<action type="Rewrite" url="brand.aspx" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>