Difficulty Ignoring Route In Asp.Net Mvc
问题 The following exception is being thrown after an IgnoreRoute method call: The controller for path '/anything.php' was not found or does not implement IController. However, I have the following method in my MvcApplication class: public static void RegisterRoutes(RouteCollection routes) { routes.RouteExistingFiles = false; routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("{*php}", new { php = @"(/?.*/)*\.php$" }); // Some calls to routes.MapRoute occur here. } I'm not really