Is there an easy way to define lookup values in your route.maproute?
example route:
routes.MapRoute(
name: "example route",
url: "product/{subcat}",
defaults: new { controller = "Redirect", action = "ProcessPage"}
);
Where: {subcat} can only be the following values: subcat1, subcat2, subcat3
I'm trying to write redirects from an old site to a new site (can't use IIS), the old site does not have consistent urls and some of them fall into patterns of my new site. I would like to avoid writing a route for every single redirect.