title: Map Custom Route ASP.NET MVC5
body: <p>I haven't used .NET Routing before.
  I have a URL: <strong><code>http://myurl.com/Account/Login/?IsIPA=true</code></strong>.
  I want to be able to hit this URL with the following: <strong><code>http://myurl.com/IPA</code></strong></p>
  
  <p>This is the only custom route I want hit. </p>
  
  <p>Can I create a route just for a single URL like this?</p>
  
  <p>My code that isn't working is:</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
  {
      routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
      routes.MapMvcAttributeRoutes();
  
      routes.MapRoute(
          name: "Default",
          url: "{controller}/{action}/{id}",
          defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
      );
      routes.MapRoute("IPA", "Account/Login/{IsIPA}", new { controller = "Account", action = "Login", IsIPA = "true" });
  }
  </code></pre>
  
  <p>I get the error: </p>
  
  <blockquote>
    <p>The constraint entry <code>IsIPA</code> on the route with route template <code>Account/Login/{IsIPA}=True</code> must have a string value or be of a type which implements <code>System.Web.Routing.IRouteConstraint</code>.</p>
  </blockquote>