Even though this is old, i just wanted to add that adding a catch all route as the last route like you do is one option.
But an alternative if you want the custom error redirect to work (adding the referer url to the querystring) you can map the catch all route to an invalid controller/action (though it doesnt seems nice).
steve schofi...
5682 Posts
MVP
Moderator
Re: Custom Errors Redirect doesn't work for 404 Not Found Error
Sep 08, 2009 02:36 AM|LINK
Thanks for the links. Those are great articles. Helps if I would have searched. :)
Steve Schofield
Windows Server MVP - IIS
http://iislogs.com/steveschofield
http://www.IISLogs.com
Log archival solution
Install, Configure, Forget
MartinF
4 Posts
Re: Custom Errors Redirect doesn't work for 404 Not Found Error
Sep 29, 2010 10:36 PM|LINK
Even though this is old, i just wanted to add that adding a catch all route as the last route like you do is one option.
But an alternative if you want the custom error redirect to work (adding the referer url to the querystring) you can map the catch all route to an invalid controller/action (though it doesnt seems nice).
This is the best solutions i know of so far.