title: MVC Routing Inside a Folder
body: <p>I have built a standard MVC application with controllers and views and the following routes:-</p>
  
  <pre><code>routes.MapRoute
  (
    name: "PageNumber",
    url: "{controller}/{action}/page-{pageNumber}",
    defaults: new { controller = "Home", action = "PageNumber" }
  );
  routes.MapRoute
  (
    name: "Default",
    url: "{controller}/{action}/{id}",
    defaults: new { controller = "Account", action = "Login", id = UrlParameter.Optional }
  );
  </code></pre>
  
  <p>Because this a back-end system, there will be a basic HTML website on the front of this. It means I need to route my site into a subfolder, so that the URL's look like this:-</p>
  
  <pre><code>SubFolder/Controller/Action/{id}
  </code></pre>
  
  <p>How can I do this, without changing all of my hard-coded links to include this sub-folder. I can't use <code>MVC</code> Areas for this, so was wondering if there was a way of changing the routing to automatically pre-pend the SubFolder bit of the URL?</p>
  
  <p>Thanks!</p>