public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("get_message.html");
routes.MapRoute("FriendlySpeakersUrlWithFormat",
"speakers/{urlKey}.{format}",
new { controller = "Speakers", action = "details", format = "html" }
);
routes.MapRoute("FriendlySpeakersUrl",
"speakers/{urlKey}",
new { controller = "Speakers", action = "details", format = "html" }
);
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);
}