- Add the more specific rules first and the more generalized ones at the end
- Define defaults from the back to front
- controller and action must exist in all rules either in the URL part or the default part. Otherwise the route handler won’t know what controller/action to map the URL to.
Advertisement
One Comment
ASP.NET MVC 2 Preview 1 just shipped. Check it out!
http://www.haacked.com/archive/2009/07/30/asp.net-mvc-released.aspx