The base url for my project won't work without Home/Index on the end. How can I ensure that if the base url is entered without Home/Index, that it is rerouted automatically to the home page. Also, Is there a way to get rid of Home/Index altogether from the url? Thanks
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}");routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); }
#c-sharp #asp.net