title: Matching a URL in iis rewrite rule
body: <p>Have an app that is hosted in iis in localhost/myapp, the idea is to redirect all urls matching "localhost/myapp/<em>.</em>" to "localhost/index1.htm" for a short while while its being updated. Using regex i'm trying to match the URL using "^myapp.<em>" but its not matching. It matches if we remove the '^' though, so whats wrong with "^myapp.</em>" as far as i know '^' means to start searching from the beginning of the path after "localhost/", i could be wrong, can anyone shed some light here, thanks.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;system.webServer&gt;
          &lt;rewrite&gt;
              &lt;rules&gt;
                  &lt;rule name="test" enabled="true" stopProcessing="true"&gt;
                      &lt;match url="^myapp.*" /&gt;
                      &lt;action type="Rewrite" url="index1.htm" appendQueryString="true" /&gt;
                  &lt;/rule&gt;
              &lt;/rules&gt;
          &lt;/rewrite&gt;
      &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>