2
如果特定錯誤代碼不匹配,如何指定單個頁面作爲回退?通過web.config指定默認錯誤頁面
我有一個HTTP 500和404錯誤匹配下面..
<system.webServer>
<httpErrors errorMode="Custom" defaultResponseMode="File">
<clear />
<error statusCode="500" path="my500errorHandler.html"/>
<error statusCode="404" path="my404errorHandler.html"/>
</httpErrors>
</system.webServer>
如何定義默認頁面來處理HTTP錯誤沒有具體限定,如500和404錯誤是在web.config文件?