How do I force my site into https mode?

If your site already has an ssl certificate assigned, you can insert this code into your sites web.config file.

<rule name="HTTPS force" enabled="true" stopProcessing="true">
 <match url="(.*)" />
 <conditions>
 <add input="{HTTPS}" pattern="^OFF$" />
 </conditions>
 <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" />
</rule>
Was this answer helpful? 0 Users Found This Useful (0 Votes)