title: IIS/HttpHandler: Get relative absolute path?
body: <p>I've got a site setup in IIS to run at <code>http://localhost/WebApplication6</code>. In my web application I have a handler (implements <code>IHttpHandler</code>). When I print <code>context.Request.Url.AbsolutePath</code>, I get <code>/WebApplication6/whaetever</code>. I want to trim off <code>/WebApplication6</code> (the local site name). How can I do that? Is there a way to get the "WebApplication6" bit so I know what to trim off? (inside <a href="http://msdn.microsoft.com/en-us/library/system.web.ihttphandler.processrequest.aspx" rel="nofollow">IHttpHandler.ProcessRequest</a>).</p>