• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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