Ben Foster 1/11/2014

Custom error pages in ASP.NET MVC. Easy, right?

Read Original

This technical article explains the challenges of setting up proper custom error pages in ASP.NET MVC, focusing on 404 errors. It details why the default configuration often returns incorrect HTTP status codes (200 instead of 404) and performs redirects, which is bad for SEO. The post provides specific web.config configurations and discusses best practices for handling errors raised by both ASP.NET and IIS.

Custom error pages in ASP.NET MVC. Easy, right?

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week