title: Application Root in MVC App?
body: <p>I am having some problems with an MVC app that uses logic based off data driven URLs (for routing) if my application is deployed to anywhere else other than the domain root.</p>
  
  <p>I tried using various Request.Url properties to no avail.</p>
  
  <p>Let's say I deploy my app to <code>www.mydomain.com/myapp/</code> or even <code>www.mydomain.com/myapp/subapp/</code>. In these cases how can I get <code>/myapp/</code> and <code>/myapp/subapp/</code> respectively. Even if the user is on a totally different page such as <code>/myapp/Users/Recent/</code>?</p>
  
  <p>I need that so I can prefix all the data driven URLs so my app still works when not on the domain root. </p>
  
  <p>Thanks.</p>