HTTP Error 404

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>
 
G

Guest

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"/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top