//this code adapted from System.Web.Mvc...I don't want to have to take a dependency on it here public static void IgnoreRoute(this RouteCollection routes, string url, object constraints) { var route = new IgnoredRoute(url) { Constraints = new RouteValueDictionary(constraints) }; routes.Add(route); }