Friday, March 25, 2022

How to resolve SSL related error in asp.net website - https web.config

The site can't provide secure connection.

Change HTTPS to http

  </system.webServer>

 <rules>

        <rule name="Redirect to HtTP" stopProcessing="true">

          <match url="(.*)" />

          <conditions>

            <add input="{HTTP}" pattern="^OFF$" />

          </conditions>

          <action type="Redirect" url="http://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />

        </rule>

      </rules>

    </rewrite>

  </system.webServer>


reference:- https://www.c-sharpcorner.com/article/redirecting-http-request-to-https-using-web-config-file3/

No comments:

Post a Comment