I wanna make my urls SEO friendly.
I have seen a lot of articles and other posts on this subject, but all of them ends up with urls like: /Products/34/my-handbag
I wanna end up with urls like: /gucci/my-handbag
I already have the controls to actually get the product from the names "gucci" and "my-handbag", i just need my routing to send me to Products
controller.
This is what I am working with right now:
routes.MapRoute(
name: "ProductDetails",
url: "{brand}/{title}",
defaults: new { controller = "ProductViews", action = "Details", brand = "", title = "" }
Any suggestions?