title: Changing ASP Core default route to different controller
body: <p>I cannnot get my ASP .NET Core MVC site to route to different controller other than Home. I changed the default route in <code>Startup</code> (it is the only route):</p>
  
  <pre><code>        app.UseMvc(routes =&gt;
          {
              routes.MapRoute(name: "default", template: "{controller=profile}/{action=index}/{id?}");
          });
  </code></pre>
  
  <p>my <code>ProfileController</code> looks like:</p>
  
  <pre><code>public class ProfileController : Controller
  {
      [HttpGet("index")]
      public IActionResult Index() 
      {
          return View();
      }
      ...
  }
  </code></pre>
  
  <p>But all I get is 404 returned form the Kestrel server on navigating to base URL.</p>