Skip to content

Instantly share code, notes, and snippets.

@stevejay
Created May 5, 2014 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevejay/7050a8d411a86a31bb5a to your computer and use it in GitHub Desktop.
Save stevejay/7050a8d411a86a31bb5a to your computer and use it in GitHub Desktop.
// To allow IIS to execute "/notfound" when requesting something which is disallowed,
// such as /bin or /app_data.
RouteTable.Routes.MapRoute(
"NotFound",
"notfound",
new { controller = "NotFound", action = "NotFound" });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment