diff --git a/UrlsAndRoutes/UrlsAndRoutes/App_Start/RouteConfig.cs b/UrlsAndRoutes/UrlsAndRoutes/App_Start/RouteConfig.cs index a352df3..366214d 100644 --- a/UrlsAndRoutes/UrlsAndRoutes/App_Start/RouteConfig.cs +++ b/UrlsAndRoutes/UrlsAndRoutes/App_Start/RouteConfig.cs @@ -12,7 +12,10 @@ namespace UrlsAndRoutes public static void RegisterRoutes(RouteCollection routes) { routes.MapRoute("MyRoute", "{controller}/{action}", - new { controller = "Home", action = "Index"}); + new { controller = "Home", action = "Index" }); + + routes.MapRoute("", "Public/{controller}/{action}", + new { controller = "Home", action = "Index" }); } } }