1. Home
  2. Cloud & Servers
  3. Multi-Cloud Managed Services
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Managed Cloud Application Hosting
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Multi-Cloud Professional Services
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Managed AWS Cloud
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Managed Azure Cloud
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Managed Buzinessware Cloud
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Managed Digital Ocean
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Managed Google Cloud
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Hosting & Servers
  3. Dedicated Server
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Hosting & Servers
  3. Virtual Private Server [VPS]
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Multi-Cloud Managed Services
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Managed Cloud Application Hosting
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Multi-Cloud Professional Services
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Managed AWS Cloud
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Managed Azure Cloud
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Managed Buzinessware Cloud
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Managed Digital Ocean
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Managed Google Cloud
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Hosting & Servers
  3. Dedicated Server
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Cloud & Servers
  3. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)
  1. Home
  2. Hosting & Servers
  3. Virtual Private Server [VPS]
  4. Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)

Enabling HTTPS redirection via domain’s web.config file (Any Plesk version on Windows)

In Plesk, go to Domains > example.com > File Manager, open the web.config file and put the following content right before </system.webServer>:

Note: If the <rewrite>/<rules> sections are already present in the web.config file, put the content below without tags <rewrite><rules>… </rules></rewrite> inside the existing <rules> section.

<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>

Updated on November 26, 2022

Was this article helpful?