• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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