title: How do I route images using ASP.Net MVC routing?
body: <p>I upgraded my site to use ASP.Net MVC from traditional ASP.Net webforms. I'm using the MVC routing to redirect requests for old .aspx pages to their new Controller/Action equivalent:</p>
  
  <pre><code>        routes.MapRoute(
              "OldPage",
              "oldpage.aspx",
              new { controller = "NewController", action = "NewAction", id = "" }
          );
  </code></pre>
  
  <p>This is working great for pages because they map directly to a controller and action. However, my problem is requests for images - I'm not sure how to redirect those incoming requests.</p>
  
  <p>I need to redirect incoming requests for <a href="http://www.domain.com/graphics/image.png" rel="noreferrer">http://www.domain.com/graphics/image.png</a> to <a href="http://www.domain.com/content/images/image.png" rel="noreferrer">http://www.domain.com/content/images/image.png</a>.</p>
  
  <p>What is the correct syntax when using the <code>.MapRoute()</code> method?</p>