1
我有ASP.NET V4 Web應用程序。 在我的web.config我有:未找到ASP.NET返回302代碼而不是404
<customErrors mode="On"> <error statusCode="404" redirect="Error.aspx" /> <error statusCode="500" redirect="Error.aspx" /> </customErrors>
但是,當我試圖讓那不存在的頁面,我的螢火看到我得到錯誤302(發現)的和重定向到首頁。 我沒有得到404 ...
這是什麼?
感謝