title: Redirect from https to http in Azure Web App service
body: <p>I have a website which supports both HTTP and HTTPS (with a valid certificate) but unfortunally for internal issues with some external services, the HTTPS configuration is not ready yet to go in production.</p>
  
  <p>I would like to redirect for now through IIS (<code>web.config</code> file) every https request to http.</p>
  
  <p>I found in the official doc, the code to redirect from http to https but not the inverse. So I tried to convert it but IIS does not actually redirect:</p>
  
  <pre><code>&lt;rule name="Redirect to HTTP" stopProcessing="true"&gt;
      &lt;match url="(.*)" /&gt;
      &lt;conditions&gt;
          &lt;add input="{HTTP}" pattern="^OFF$" /&gt;
      &lt;/conditions&gt;
      &lt;action type="Redirect" url="http://{HTTP_HOST}/{R:1}" redirectType="Permanent" /&gt;
  &lt;/rule&gt;
  </code></pre>