プロジェクトで URL 書き換えを実装しています。URL Rewrite を使用して IIS から書き換えるルールを追加しました。以下は、ルールが追加された web.config ファイルのコードです。
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<rewrite>
<rules>
<rule name="URLRedirect" stopProcessing="true">
<match url="^([a-z0-9/]+).aspx$" />
<action type="Redirect" url="{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
しかし、問題は、.aspx という拡張子だけを削除するルールを書いていて、URL を次のようにしたいことです。
http://localhost:58370/URLRedirect/Default.
しかし、現在、http://localhost:58370/URLRedirect/
この問題を解決するにはどうすればよいか.....と表示されています。