IIS

Stop and Start IIS from the command line

net stop was
net start w3svc

IIS URL Rewrite rules to 301 redirect to https and force external content references to use https

<rewrite>
  <rules>
    <rule name="Redirect everything to https:// on www domain" patternSyntax="Wildcard" stopProcessing="true">
      <match url="*" />
      <conditions logicalGrouping="MatchAny">
        <add input="{HTTP_HOST}" pattern="www.[DOMAIN].com" negate="true" />
        <add input="{HTTPS}" pattern="off" ignoreCase="true" />
      </conditions>
      <action type="Redirect" url="https://www.[DOMAIN].com/{R:0}" redirectType="Permanent" />
    </rule>
  </rules>
  <outboundRules>
    <rule name="Rewrite to secure src" preCondition="IsHTML">
      <match pattern="src=&quot;http://" />
      <action type="Rewrite" value=&quot;src="https://" />
    </rule>
    <preConditions>
      <preCondition name="IsHTML">
        <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
      </preCondition>
    </preConditions>
  </outboundRules>
</rewrite>
Sponsored by