• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Can't enable permanent 301 redirect

Salen

New Pleskian
Hello all, I've been having an issue with getting my http to https redirect to work on my Plesk Webhost, simply because I can't press the "Permanent SEO-safe 301 redirect from HTTP to HTTPS" button in my hosting settings. I've purchased a legitimate SSL certificate, and Plesk recognizes it as so. Every tutorial and every help forum says to go into my host settings and press this little button to turn it on, but I can't press it; it isn't recognized as a button. I have all permissions- i'm the owner. I was wondering if anyone has had this problem or knows a fix for it. If anyone doesn't know what button i'm talking about, it's Websites and Domains > Hosting Settings > Security. Thanks.
358aqs9.png
 
Are you an admin at your server?

Othervise you can setup an https redirect via .htaccess or Additional directives for HTTP.

In Plesk, go to Domains > example.com > Apache & nginx Settings and paste the following directives to the Additional directives for HTTP field:
Code:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,QSA]
</IfModule>

Add the following directives to the Additional nginx directives field (if available):
Code:
if ($ssl_protocol = "") {
rewrite ^/(.*) https://$server_name/$1 permanent;
}

or via .htaccess:
Code:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
That worked. Now the issue is my website saying "Not secure", even though I have a valid SSL certificate, and Plesk recognizes my domain as SSL Secured
9a9ssz.png
aeqxk8.png
 
EDIT: I figured it out. It was a setting in my myBB forums panel that I needed to change.
Thanks for your help anyways!
 
Back
Top