using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace YourApplication { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); var clientRoutes = new DomainRouteCollection("{clientHost}" + MvcApplication.DnsSuffix, routes); RegisterRootRoutes(clientRoutes); } private static void RegisterRootRoutes(DomainRouteCollection routes) { routes.MapRoute( name: "Root/Index", url: "", defaults: new { controller = "Root", action = "Index" } ); } } }