Domain: domain.com
I want to create a url like : domain.name
OR
domain/name
not like : domain/controller/action/string
Home Controller { public ActionResult Index(string name) { return View(); } }
how can I do that, kindly suggest.
thanks.
This is what I am looking for.
By the way thanks for your quick response.
routes.MapRoute( name: "Profile", url: "{id}", defaults: new { controller = "Home", action = "Index"} );
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.