如何/
使用 IIS 重写重写站点的基本路径(即)?
到目前为止,我已经尝试过:
<rule name="RewriteIndexUrl" stopProcessing="true">
<match url="/" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.html" />
</rule>
目前它没有重写该基本路径,而是index.html
直接返回。