My current error handling URLs look rather ugly:
http://localhost:65089/Error/NotFound?aspxerrorpath=/Foo
Would rather have something like this:
http://localhost:65089/Error/NotFound
Web Config Code
<system.web>
<customErrors mode="On" defaultRedirect="~/Error/Unknown">
<error statusCode="404" redirect="~/Error/NotFound" />
</customErrors>
Error Controller
public class ErrorController : Controller
{
//
// GET: /Error/
public ActionResult Unknown()
{
return View();
}
public ActionResult NotFound()
{
return View();
}
}
Thanks in advance!