I am having a website, say www.mywebsite.com, to which I want to add my ASP.NET MVC application which could be accessible from the link www.mywebsite.com/MyApplication. The problem begins when the action method of a controller is called which redirects to mywebsite.com/Home/MyAction which gives a 404. The route mapping done currently is as follows:
routes.MapHttpRoute(
name: "API Default",
routeTemplate: "api/{controller}/{action}"
);
Please advice me on what I should be follow regarding the routing.