IIS redirect users to a page on any error (404, 500, etc..)

We have a redirect page that kicks in on 404 errors. Can we redirect users to the same page when other errors happen? (500 errors, 302, etc...?)

If yes... How?
LVL 19
MontoyaProcess Improvement MgrAsked:
Who is Participating?
 
Miguel OzConnect With a Mentor Software EngineerCommented:
Your error handling strategy should handle HTTP and exception errors. M$ provides this example "Complete Example for Error Handlers" that shows how to handle error codes (web config changes customErrors node) and  handle exceptions at page and global level.

@Sean: The customErrors node at web config is the best place to implement these changes as shown here.
0
 
SeanSystem EngineerCommented:
yes it can be done. Here is a link on how to do this. http://technet.microsoft.com/en-us/library/cc753103%28v=ws.10%29.aspx
0
 
MontoyaProcess Improvement MgrAuthor Commented:
hmm but the very first paragraph of the link you sent (which I had already visited) says that you cannot create custom... on errors <list of error codes>

am I missing something?
0
 
SeanSystem EngineerCommented:
Oh okay sorry i was a little confused on your question then. Try taking a look at this. Sorry i am not a expert on this but did find a page of people discussing this. Sorry i can't be more help on this i was thinking you just wanted a custom error page for general errors.

https://www.stokia.com/support/misc/web-config-custom-httperrors.aspx
0
All Courses

From novice to tech pro — start learning today.