title: ASP.NET MVC5 Routing Error : works for one Action but not for the other
body: <p>I have 3 actions; category, tag and search that has the same type of route signature but the routes start with different values. </p>
  
  <p>Now only the category is working fine but the other two aren't. </p>
  
  <p>Search action shows : <code>localhost/search?s=SOMEWORD</code> in the url and page loads.</p>
  
  <p>But tag action gives me an error: <code>The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.</code>  </p>
  
  <p>I wanted my routes to be <code>localhost/{action}/{someWord}</code> but could not.</p>
  
  <p>Controller Actions:</p>
  
  <pre><code>public ActionResult Category(string category, int p = 1)
      {
          //some caculations
          return View("List", viewModel);
      }
  
  
      public ActionResult Tag(string tag, int p = 1)
      {
          //some caculations
          return View("List", viewModel);
      }
  
      public ActionResult Search(string s, int p = 1)
      {
          //some caculations
          return View("List", viewModel);
      }
  </code></pre>
  
  <p>RouteConfig:</p>
  
  <pre><code>routes.MapRoute(
              "Category",
              "Category/{category}",
              new { controller = "Blog", action = "Category" }
          );
  
          routes.MapRoute(
              "Tag",
              "Tag/{tag}",
              new { controller = "Blog", action = "Tag" }
          );
  
          routes.MapRoute(
              "Search",
              "Search/{s}",
              new { controller = "Blog", action = "Search" }
          );
  </code></pre>