asp.net mvc 2 - Trouble Figuring Out The routes.Maproute For This URL (C#) -
despite plethora of url routing posts, have yet reach enlightenment on subject. i have mvc app works fine, want fancy , url rewriting make easier on users. the default route slight variation on usual: routes.maproute( "default", "{controller}/{action}/{query}", new{ controller = "somecontroller", action="index", query = "" }); what want re-route url http://mysite.com/12345 details action of somecontroller 12345 query. tried this: routes.maproute( "directtodetails", "{query}", new{ controller = "somecontroller", action="details" query="" }); routes.maproute( "default", "{controller}/{action}/{query}", new{ controller = "somecontroller", action="index", query = "" }); but ends obscuring http://mysite.com/ , goes somecontroller/details instead of somecontroller/index....