- In Plesk, go to Domains > example.com > Apache & Nginx Settings.
- 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> - Copy the following directives to the Additional nginx directives field, if Nginx is used:
if ($ssl_protocol = “”) {
rewrite ^/(.*) https://$server_name/$1 permanent;
}
Enabling HTTPS redirection using additional Apache and nginx directives in Plesk (Any Plesk version on Linux)
Updated on November 26, 2022