2 回答

TA貢獻1818條經(jīng)驗 獲得超11個贊
相當簡單,只需添加一個條件來檢查文件是否存在。
<conditions>
<add input="{Document_Root}/{REQUEST_URI}/index.php" matchType="IsFile" negate="true" />
</conditions>
另外,請在清除本地瀏覽器緩存后或在瀏覽器的隱身窗口中驗證結(jié)果。
如果問題仍然存在,請隨時告訴我。

TA貢獻1797條經(jīng)驗 獲得超4個贊
我認為你需要告訴 IIS 你的默認文檔是什么。更換線路
<defaultDocument enabled="true" />
和
<defaultDocument>
<files>
<clear />
<add value="index.php" />
<add value="index.htm" />
<add value="default.php" />
<add value="default.htm" />
</files>
</defaultDocument>
IIS 將按照列出的順序檢查默認文檔部分中列出的所有文件名,您可以擁有任意數(shù)量的文件名。該<clear />行告訴 IIS 忽略標準服務(wù)器設(shè)置。(如果您沒有指定任何默認文件,我認為它會查找“Default.htm”、“Default.aspx”和“Default.asp”。)
- 2 回答
- 0 關(guān)注
- 192 瀏覽
添加回答
舉報