1. Home
  2. Cloud & Servers
  3. Multi-Cloud Managed Services
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Managed Cloud Application Hosting
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Multi-Cloud Professional Services
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Managed AWS Cloud
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Managed Azure Cloud
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Managed Buzinessware Cloud
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Managed Digital Ocean
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Managed Google Cloud
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Hosting & Servers
  3. Dedicated Server
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Hosting & Servers
  3. Virtual Private Server [VPS]
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Multi-Cloud Managed Services
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Managed Cloud Application Hosting
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Multi-Cloud Professional Services
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Managed AWS Cloud
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Managed Azure Cloud
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Managed Buzinessware Cloud
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Managed Digital Ocean
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Managed Google Cloud
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Hosting & Servers
  3. Dedicated Server
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Cloud & Servers
  3. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
  1. Home
  2. Hosting & Servers
  3. Virtual Private Server [VPS]
  4. Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)

Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)

  1. In Plesk, go to Domains > example.com > Apache & Nginx Settings.
  2. Copy the following directives to the Additional directives for the HTTP field:

    Note: If you are a domain owner and Apache & Nginx Settings is not available for you, please contact Buzinessware for assistance with permanent HTTPS redirection.

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} !=on
    RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,QSA]
    </IfModule>

  3. Copy the following directives to the Additional nginx directives field, if Nginx is used:

    if ($ssl_protocol = “”) {
    rewrite ^/(.*) https://$server_name/$1 permanent;
    }

Updated on November 26, 2022

Was this article helpful?