we have one project in asp.net mvc 5 when i run my project and click on some button for go to the next page then we are getting the url like wwww.abx.com/project/projectname .
where project is my controller name and projectname is Action name
so if i want so url like
wwww.abx.com/projectname
then this is possible ?
please if any one have some solution so please give it
here is my route.config file code
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "view1", id = UrlParameter.Optional }
);
}
Thanks