28 Jun 2007
06 Jun 2012
Link to this post
We have a bunch of old pages that have either moved or been renamed so we're adding 301 redirects for SE benefit. On most pages this is working, but on a few we get a System.Web.HttpException, which is actually a 404 error. Normally if the page wasn't found the page returned would come from IIS.
These are URLs that I added to a new page as additional URLs.
1. CustomerEnquiry works and redirects to our new Register page
2. Same goes for About-Us/Register and Home/Register
3. Contact-Us/CustomerEnquiry doesn't work it returns an exception which is incidentally has a return status code of 404 which is contradictory. If an exception was thrown one would expect it to throw a 500 internal server error. If it's a 404 one wouldn't expect to see the exception message thrown by asp.net.
See the attached image for the exception page.
Any ideas why this would be happening?