Hello for an ecommerce replacement project, I have to route all old url to the new one (about 30.000 links). I tried this solutions After add MapPageRoute to an asp.net mvc project, the site stops to enter in Home Controller using placeholder to standardize the url
routes.MapPageRoute(
"LegacyShop",
"Error/_404",
"~/it-www/{page}.aspx",
true, null,
new RouteValueDictionary { { "outgoing", new MyCustomConstaint() } }
);
The "Error/_404" controller/action is a sample method that make a 301 to the new url based on a table. But it's not working, every time I try I have a simple 404 error. Can someone help me? Thanks a lot