If you’re trying to use MVC incrementally on an existing project, this can be a bit of pain. There must be some way of way of getting the routing logic to redirect itself, but in practice the following does the trick (assuming you’re using the standard routing).
public class HomeController : Controller { public ActionResult Index() { return new RedirectResult("~/Default.aspx"); } }
Technorati Tags: ASP.NET MVC