0
如何使用IIS重寫來重寫網站的基本路徑(即/
)?如何用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
。