asp.net mvc 2 - How to correctly and easily handle 404 errors on my MVC2 application? -
same question:
I'm partly the question above Except that it is very important rather than being MVC2-ey. Perhaps a 'more conference on configuration' approach is more straightforward with MVC2?
When the user types in a non-existent approach, how can I easily set up my MVC2 application to show a special 404 page?
Thank you.
In Web.config
& lt; CustomErrors mode = "on" defaultRedirect = "~ / error-page / index" & gt; & Lt; Error status code = "404" redirect = "~ / error-page / notfound" /> & Lt; Error status code = "403" redirect = "~ / error-page / badderity" /> & Lt; / CustomErrors & gt;
Comments
Post a Comment