title: Web.config URL rewriter
body: <p>I would like to redirect my logon page to https, but i don't understand why my rules doesn't work, somebody have idea ?</p>
  
  <pre><code>&lt;rewrite&gt;
              &lt;rules&gt;
                  &lt;clear /&gt;
                  &lt;rule name="Redirect to https" stopProcessing="true"&gt;
                      &lt;match url="http://([_0-9a-zA-Z-]+).&lt;mydomaine&gt;.fr(/logon.html)?" /&gt;
                      &lt;conditions&gt;
                          &lt;add input="{HTTPS}" pattern="off" ignoreCase="true" /&gt;
                      &lt;/conditions&gt;
                      &lt;action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" /&gt;
                  &lt;/rule&gt;
              &lt;/rules&gt;
  &lt;/rewrite&gt;
  </code></pre>
  
  <p>when i navigate on the url without https protocol the rule doesn't execute redirect</p>