How to Force SSL on an IIS Site

The following methods can be used to force visitors of your website to use HTTPS.

Plesk Onyx

For customers on Plesk Onyx or higher, you can utilize Plesk to enable an IIS redirect to force SSL. 
  1. Log into the Plesk control panel
  2. Go to Subscriptions
  3. Select your subscription
  4. Click Hosting Settings
  5. Check Permanent SEO-safe 301 redirect from HTTP to HTTPS
  6. Click Apply or OK

Plesk 12.5 and Below

On older versions of Plesk, you must implement this in your web.config file. Place the following IIS rewrite rule inside of the <system.webServer> section of your web.config:
        <rule name="HTTP to HTTPS redirect" stopProcessing="true">
        <match url="(.*)" />
        	<add input="{HTTPS}" pattern="off" ignoreCase="true" />
        <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
If you want to check how the redirect is working you can use the following site to check:

Add Feedback