title: Why RewritePath changes the Browser Url?
body: <p>I have an ASP.NET 4 HttpModule (see code below). When the url path starts with "/1.0" I want Cassini/IIS to go to MyService.svc. However, I don't want to show "MyService.svc" to the user (i.e. no update to the url in the browser). I want the user to see "www.something.com/1.0". </p>
  
  <p>I was pretty sure that RewriteUrl isn't supposed to change the browser url, but in my case it does. Any idea why? </p>
  
  <pre><code>    public void Init(HttpApplication context)
      {
          context.BeginRequest +=
              delegate
              {
                  HttpContext ctx = HttpContext.Current;
                  const string BasePath = "~/1.0";
                  if (path.StartsWith(BasePath, StringComparison.OrdinalIgnoreCase))
                  {
                      ctx.RewritePath("~/MyService.svc", "this/is/a/path", string.Empty, false);
                  }
              };
      }
  </code></pre>
  
  <p>P.S. I cannot use ASP.NET Routing because of the period/dot in the Url (see <a href="https://stackoverflow.com/questions/2310187/asp-net-mvc-route-ids-with-a-period">ASP.NET MVC Route IDs with a period</a>).</p>