title: Removing home index from mvc 5 homepage default routing
body: <p>I am trying to prevent user to access <code>abc.com/Home/Index</code>, instead i want user to be able to access home page via <code>abc.com</code> only. I use the following code but not work.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>// This code restict user to access abc.com/home/index
  // Only allow user to access abc.com/home
  routes.MapRoute(
      "OnlyAction",
      "{action}",
      new { controller = "Home", action = "Index" } 
  );
  
  
  // This code does not work, I am expecting this code to allow
  // user to access home only at abc.com
  routes.MapRoute(
      "Home",
      "",        
      new { controller = "Home", action = "Index"} 
  );</code></pre>
  </div>
  </div>
  </p>