Here are the URL’s that I’m trying to map with MVC3
routes.MapRoute( "Products", "{controller}/{id}/{*name}", new { action = "view" }, new { id = @"\d+" } );
/products/13/seo-friendly-name-of-the-product
Now the next route I need to map is this
routes.MapRoute( "General", "{controller}/{id}/{action}", new { }, new { id = @"\d+" } );
/user/42/changepassword
I want to know how to resolve this problem. Simply changing the order isn’t enough because one area of the app stops working. I know that {*name} and {action} are being conflicted, but I don’t know what to do to fix this.
The goal is to eliminate ambiguous matches, so let’s look at making one more specific. Is the controller for your Products route always “Products”? If so, could you change that route to