title: This site can’t provide a secure connection
body: <p>When I added the URL rewrite code in web.config and then publish it into azure. it will automatically redirects to https even I am trying to access website with http.</p>
  
  <pre><code>&lt;rewrite&gt;
    &lt;rules&gt;
      &lt;rule name="Redirect to https"&gt;
        &lt;match url="(.*)"/&gt;
        &lt;conditions&gt;
          &lt;add input="{HTTPS}" pattern="Off"/&gt;
        &lt;/conditions&gt;
        &lt;action type="Redirect" url="https://{HTTP_HOST}/{R:1}"/&gt;
      &lt;/rule&gt;
    &lt;/rules&gt;
  &lt;/rewrite&gt;
  </code></pre>
  
  <p>But when I run the same code in my local machine it gives the below error.</p>
  
  <p><strong>This site can’t provide a secure connection</strong></p>
  
  <p><a href="https://i.stack.imgur.com/7yc7k.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7yc7k.png" alt="enter image description here"></a></p>
  
  <p>How can I resolve the above error when I run the above code in my local machine?</p>