How to Force SSL on an IIS Site

Plesk Servers > SSL
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:
<rewrite>
    <rules>
        <rule name="HTTP to HTTPS redirect" stopProcessing="true">
        <match url="(.*)" />
        <conditions>
        	<add input="{HTTPS}" pattern="off" ignoreCase="true" />
        </conditions>
        <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
        </rule>
    </rules>
</rewrite>
 
 
 
 

Add Feedback