Ad
How Do I Get Rid Of Home In ASP.Net MVC?
I know this site is written using ASP.Net MVC and I do not see "/Home" in the url. This proves to me that it can be done. What special route and do I need?
Ad
Answer
Just change "Home" to an empty string.
routes.MapRoute(
"Home",
"",
new { action = Index, controller = Home }
);
Ad
source: stackoverflow.com
Related Questions
- → Function Undefined in Axios promise
- → AngularJS directive: "templateUrl" doesn't work while "template" works
- → JavaScript in MVC 5 not being read?
- → URL routing requires /Home/Page?page=1 instead of /Home/Page/1
- → NumericTextBox Loses Value using Html.TextBoxFor, not HTML
- → Does the fact that every page is reachable through www.example.com and www.example.com/index have any SEO impact?
- → SEO tags in Umbraco
- → Add dynamic divs around 6 image urls using jquery
- → ASP.NET Mvc 5 return View with seo friendly url
- → MVC SEO targeting Italy from a .uk.com domain
- → Using an object I never defined in JQuery
- → Pass json data from Google Maps to MVC controller with AJAX
- → Displaying Unique SEO code two times in the URL when change length 2 to 5
Ad