404 setting in web.config

  • Thread starter Thread starter beachboy@work
  • Start date Start date
B

beachboy@work

hi everyone,

i'm modifying web.config to handle 404 error and redirect to a specific
page, but it can only redirect when i requesting a .aspx page, but not
include .htm and others, my web is developed with c#, thanks you
guys...^_^

rgds,

henry
 
Hi Henry,

For .htm & others (since the request is not handled by asp.net) you can
set it at the IIS Site properties dialog, in the Custom Error Tab. You
can edit the error mapping properties there.

HTH,
APG
 
Back
Top