title: IIS got ERR_TOO_MANY_REDIRECTS on rewrite rule
body: <p>I'm trying to create an IIS rule to redirect mobile users to the mobile site.
  The main site (desktop version) is in the root route ('/'), and the mobile site is in the route '/mobile'</p>
  
  <p>I created this IIS rule, but when I try it in desktop it's work well, but in mobile, I got an error ERR_TOO_MANY_REDIRECTS</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="Rewrite Mobile" enabled="true" stopProcessing="true"&gt;
              &lt;match url="(.*)" ignoreCase="true"/&gt;
              &lt;conditions logicalGrouping="MatchAny"&gt;
                  &lt;add input="{HTTP_USER_AGENT}" pattern="midp|mobile|phone" /&gt;
                  &lt;add input="{HTTP_X-Device-User-Agent}" pattern="midp|mobile|phone" /&gt;
                  &lt;add input="{HTTP_X-OperaMini-Phone-UA}" pattern="midp|mobile|phone" /&gt;
              &lt;/conditions&gt;
              &lt;action type="Redirect" url="mysiteurl/mobile" appendQueryString="false" /&gt;
          &lt;/rule&gt;
      &lt;/rewrite&gt;
    &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>