title: Problem with globalization of ASP.NET MVC routes
body: <p>I tried to use the solution explained at <a href="http://weblogs.asp.net/paulomorgado/archive/2010/01/31/web-site-globalization-with-asp-net-routing.aspx" rel="nofollow noreferrer">http://weblogs.asp.net/paulomorgado/archive/2010/01/31/web-site-globalization-with-asp-net-routing.aspx</a> to localize my application using the language parameter in my routes.</p>
  
  <p>Here's the code I have in my Global.asax:</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.Add("en", new Route("en/{*path}", new GlobalizationRouteHandler(CultureInfo.GetCultureInfo("en-US"))));
          routes.Add("fa", new Route("fa/{*path}", new GlobalizationRouteHandler(CultureInfo.GetCultureInfo("fa-IR"))));
  
          routes.MapRoute(
              "AdminHome",
              "{language}/admin",
              new { controller = "Admin", action = "Index" }
          );
  
      }
  </code></pre>
  
  <p>But when I point my browser to /en/admin or /fa/admin I receive a 404 error message.</p>
  
  <p>I tried this one too:</p>
  
  <pre><code>routes.MapRoute(
          "AdminHome",
          "admin",
          new { controller = "Admin", action = "Index" }
      );
  </code></pre>
  
  <p>But still a 404 error for /en/admin - (in this case "/admin" works.)</p>
  
  <p>Any idea?</p>