I'm using ASP.NET MVC 4 and I have some problems settings up my routes. Could you tell my how to set up my routes to point urls to actions as follows:
- "/" (or "/Start") => PublicController.Start()
- "/About" => PublicController.About()
- "/MyPage" (or "/MyPage/Summary") => MyPageController.Summary()
- "/MyPage/Invoices" => MyPageController.Invoices()
- "/MyPage/Invoice/72" => MyPageController.Invoice(int id)
It's the url "/About" that messes things up for me, i.e. a url that does not specify the controller. If I make that one work the others that do specify controller stop working. I could just create a separate controller for "/About" I guess, but I'd rather not if I don't have to (I have more urls following that pattern).