请尝试在 web.config 中使用以下重写规则:
<rule name="efault document rewrite" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{REQUEST_FILENAME}" pattern="index.asp" />
</conditions>
<action type="Redirect" url="{R:1}" redirectType="Temporary" />
</rule>