Url routing issue in asp.net mvc ...
Posted
by Pandiya Chendur
on Stack Overflow
See other posts from Stack Overflow
or by Pandiya Chendur
Published on 2010-05-19T03:03:28Z
Indexed on
2010/05/19
3:20 UTC
Read the original article
Hit count: 191
I am doing a return RedirectToAction("Index", "Clients");
from my home controller.... It is fine but my url looks like http://localhost:1115/Clients/Index
... How to remove index from url in asp.net mvc? Any suggestion....
My routes,
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Registrations",
"{controller}/{action}/{id}",
new { controller = "Registration", action = "Create", id = "" }
);
}
© Stack Overflow or respective owner