public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "DefaultRoute", "{language}/{controller}/{action}", new { controller = "default", action = "index" }, new { language = new LanguageRouteConstraint() }, new string[] { "MvcBloggy.Web.Controllers" } ); routes.MapRoute( "DefaultLangRoute", "{controller}/{action}", new { controller = "default", action = "index", language = AppLanguage.GetDefault() }, new { }, new string[] { "MvcBloggy.Web.Controllers" } ); }