• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk 8.6.0 Force https

M

meisi

Guest
Hey guys. I have a valid SSL certificate installed and have checked the box to share httpdocs and httpsdocs. Everything works correctly when people visit https://mydomain.com, but I was wondering what the best way to require ssl is in this version of plesk.
 
You should be able to do this with an .htaccess rule in your site root.

Something like

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://mydomain.com/$1 [R,L]

that should take anyone who uses port 80 (non-SSL) to the equivalent page on the HTTPS site I think.

HTH
 
Back
Top