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
 

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

Back
Top