Redirect http to https in Plesk panel

Overview

In this article we will show you how to Redirect HTTP to HTTPS in Plesk panel, if you have an SSL certificate on your website, you can automatically forward visitors to the secure version (HTTPS) of your site for a secure connection. There is a simple tool in the panel that will help you achieve this, we’ll explain it in this lesson.

Redirect HTTP to HTTPS

  1. Login to your Plesk account.
  2. Go to Domains > example.com > File Manager.
  3. Open web.config file, and add the following code, before </system.webServer> tag:
<configuration>

<system.webServer>

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

</system.webServer>

</configuration>

 

 

Share this:
FacebookTwitterWhatsAppViberCopy LinkTelegramLinkedIn
Updated on July 6, 2020

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support