title: Adding company name in Routes mvc 4
body: <p>I have been trying to give options to users like Facebook to add their company name in the URL:</p>
  
  <pre><code>http://localhost:50753/MyCompany/Login
  </code></pre>
  
  <p>I have tried different URLs, but it didn't work.</p>
  
  <pre><code>routes.MapRoute(
                  name: "Default",
                  url: "{companyName}/{controller}/{action}",
                  defaults: new { controller = "Login", action = "Index"}
              );
  
  routes.MapRoute(
                 name: "Login",
                 url: "{controller}/{action}/{id}",
                 defaults: new { controller = "Login", action = "Index", id = UrlParameter.Optional }
             );
  </code></pre>
  
  <p>Now when I add this route to get it work, all of my AJAX requests start fails and those that succeed represent HTML rather than JSON.  What I have noticed is that because of this route, my page gets reload again. </p>
  
  <p>Can someone help me figure out how can it be done using MVC routing (if it's possible, or if I'm thinking in the wrong way)? </p>