Redirect Http to Https in web.config Return not found

Viewed 15

I want to redirect this club.mysite.com to https://club.mysite.com. i wrote this code in web.config:

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

                    <match url=".*" />
 
                   <conditions>
 
                       <add input="{HTTPS}" pattern="off" ignoreCase="true" />
  
                  </conditions>
 
                   <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
 
       </rule>

i used IIS10.any solution ?

0 Answers
Related