If you want only:
http:
then
routes.MapRoute(
"Default",
"",
new { controller = "Home", action = "Index" }
);
If you want only:
http://localhost/home/
then
routes.MapRoute(
"Default",
"home",
new { controller = "Home", action = "Index" }
);
and if you want:
http:
then
routes.MapRoute(
"Default",
"home/index",
new { controller = "Home", action = "Index" }
);
source
share