title: MVC Routing - multiple url's matching to a single controller/method
body: <p>I am trying to setup a single controller to use 2 different URLs.</p>
  
  <p>So what I want is to navigate to:  </p>
  
  <ul>
  <li>mysite.com/MyArea/some-route/SomeAction</li>
  <li>mysite.com/OtherArea/some-route/SomeAction</li>
  </ul>
  
  <p>and have them both go to the same place.</p>
  
  <p>So I have a class set up like this:</p>
  
  <pre><code>[RouteArea("MyArea", AreaPrefix = "MyArea")]
  [RoutePrefix("some-route")]
  [Route("{action}")]
  public class MyController : Controller
  {
      [Route("SomeAction")]
      [Route("~/OtherArea/some-route/SomeAction")]
      [AcceptVerbs(HttpVerbs.Get)]
      public ActionResult MyAction()
      {
          return View();
      }
  }
  </code></pre>
  
  <p>So this works - though looks a little messy.<br>
  I can type in either URL into the browser and it will pick up this action/page.</p>
  
  <p>The 'OtherArea' doesn't really exist.  It's just sometimes I want to use the first url, sometimes the second.  </p>
  
  <p>1)  How do I route to this action and specify the url?</p>
  
  <pre><code>RedirectToAction("MyAction", "MyController", new { area = "MyArea" }); 
  </code></pre>
  
  <p>I'm only specifying the controller/action - the URL it finds by itself.
  Can I force it to use one or the other?</p>
  
  <p>Ideally without hardcoding the path.</p>
  
  <p>2) Is there a better way of doing what I am trying to do?<br>
  I'm not a fan of this line:  </p>
  
  <pre><code>[Route("~/OtherArea/some-route/SomeAction")]
  </code></pre>
  
  <p>But I also don't want to create a copy of the controller and a new Area just for the sake of having a second url.</p>
  
  <p>Thanks</p>