Make sure this route is listed before the default route. You can also use regular expressions to limit the possible parameter values:
routes.MapRoute(
"NewsArticles",
"News/{page}",
new { controller = "News", action = "Index" },
new { page = @"^\d{1,3}$" }
);
Note. In your example, you are using archive = falsewhile there is no parameter in the route archive.
source
share