title: Response.Redirect with a subdirectory in url
body: <p>I have a little problem with my Redirect in ASP.NET (C#)</p>
  
  <p>I just got a domain which looks like this: <code>http://www.example.com/subdirectory</code></p>
  
  <p>So when I open my asp.net start page, the url looks like this: <code>http://www.example.com/subdirectory/Startpage/Startpage.aspx</code></p>
  
  <p>That's my Redirect in code behind:</p>
  
  <pre><code>Response.Redirect("~/UserSite/UserSite.aspx")
  </code></pre>
  
  <p>The problem now is, when I click on that button, I get redirected to </p>
  
  <p><code>http://www.example.com/UserSite/UserSite.aspx</code> </p>
  
  <p>instead of</p>
  
  <p><code>http://www.example.com/subdirectory/UserSite/UserSite.aspx</code> </p>
  
  <p>How can I get my web page to notice the subdirectory in the url?</p>
  
  <p>Would be nice if someone could help me.
  Thanks.</p>