HTTP Error 404

  • Thread starter Thread starter Arne
  • Start date Start date
A

Arne

I would like my 404 error to go to the IIS 404 error page and not to the
Asp.net error handler. Is that possible?

<customErrors mode="RemoteOnly" defaultRedirect="Error.aspx">
<error statusCode="404" redirect="" />
</customErrors>
 
I would like my 404 error to go to the IIS 404 error page and not to the
Asp.net error handler. Is that possible?

<customErrors mode="RemoteOnly" defaultRedirect="Error.aspx">
                 <error statusCode="404" redirect="" />
</customErrors>

I think you can copy it as 404.htm and use redirect in the web.config
file as

<error statusCode="404" redirect="~/Error/404.htm"/>
 
Back
Top