title: Controller in Sub Folder
body: <p>My area is below. Only the concerned part is highlighted.  </p>
  
  <p><img src="https://i.stack.imgur.com/OcaQf.png" alt="enter image description here"></p>
  
  <p><strong>Route Table</strong></p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
  {
      routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
      routes.MapRoute(
          "SubFolder", // Route name
          "SubFolder/ChildController",
          new { controller = "ChildController", action = "Index" },
          new[] { "Practise.Areas.SOProblems.Controllers.SubFolder" });
  
  
      routes.MapRoute(
          "Default", // Route name
          "{controller}/{action}", // URL with parameters
          new { controller = "Home", action = "Index" } // Parameter defaults
      );
  }
  </code></pre>
  
  <hr>
  
  <p>This only works when the url is like this </p>
  
  <pre><code>localhost:2474/SOProblems/ChildController/index 
  </code></pre>
  
  <hr>
  
  <p>This does not works when the url is like this </p>
  
  <pre><code>localhost:2474/SOProblems/SubFolder/ChildController/index
  </code></pre>
  
  <p>Can you please tell me what is missing?</p>