I am trying to create a route that only matches if a specific parameter is used in the URL.
For example:
routes.MapRoute(
name: "BannerAds",
url: "Go/{Web}",
defaults: new { controller = "CommunicationsAlias", action = "BannerAds", web = UrlParameter.Optional }
);
I want the URL to match for http://www.domain.com/Go/Web?=111222
But not for http://www.domain.com/Go/Advertising
How do I change my route to function this way?