I have specified the following routes:
routes.MapRoute(
"myRoute1",
"{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = UrlParameter.Optional });
routes.MapRoute(
"myRoute2",
"public/{controller}/{action}/{id}",
new { controller = "PublicHome", action = "Index", id = UrlParameter.Optional });
and would expect the following url to work
[http://localhost:58658/public]
Since in myRoute2 for [/public] url, I specified the default values for controller and action but this doesn't seem to work. Any ideas ?
Thanks
/infront ofpublic/{controller}/{action}/{id}