ASP.NET Core redirect http to https : <p>I have created a redirect rules in my web.config to redirect my website from http to https. The issue i have is that every single link on the website is now https. I have a lots of link to other website which don't have SSL and therefore i get certificate errors. This is what i have done:</p>

<pre><code>  &lt;rewrite&gt;
  &lt;rules&gt;
    &lt;rule name="HTTP/S to HTTPS Redirect" enabled="true" stopProcessing="true"&gt;
      &lt;match url="(.*)" /&gt;
      &lt;conditions logicalGrouping="MatchAny"&gt;
        &lt;add input="{SERVER_PORT_SECURE}" pattern="^0$" /&gt;
      &lt;/conditions&gt;
      &lt;action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" /&gt;
    &lt;/rule&gt;
  &lt;/rules&gt;
&lt;/rewrite&gt;
</code></pre>

<p>How can i redirect https only for my domain and not every links on my website?</p>
