I'm working on a site that is partially static content and partially MVC. The root of the site is index.html and I have all of the controllers explicitly routed and all html files ignored. However, when you hit the root of the website, it tries to route it. How can I tell the route engine to ignore the root of the site? www.mysite.com should not be routed, but instead go to index.html. Here is my routing configuration:
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("*.html|js|css|gif|jpg|jpeg|png|swf");
routes.MapRoute(
"vendor_signup","{vendor}/signup/{action}/",
new { controller = "Signup", action = "Index", vendor=UrlParameter.Optional} // Parameter defaults
);
routes.MapRoute(
"signup","signup/{action}/",
new { controller = "Signup", action = "Index", vendor=Vendors.PCICentral} // Parameter defaults
);
//more routes below