• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

How to redirect automaticly to https?

R

RobertS

Guest
How can I set if someone visits http://www.domainname.com Plesk automaticly loads httpS://www.domainname.com?

I have a customer which want to use https always but the visitors of his website do not know what httpS is, so they always enter the site by http instead of httpS

The domain runs on a exclusief IP and has its own certificate installed.
When I go to webdirectories -> preferences and enable require SSL it gives not the correct effect, now visitors get an page not found if they visit hte site using normal http

The site (webshop) works perfectly if visitors enter manually https instead of http, but the shop has no option to redirect to https when you which to check out and pay. I therefore which that all visitors of this domain are automaticly redirected to https.

How do i do that in Plesk 8.2?
 
Hi,

You can force redirection to ssl by enabling Require SSL at the following page:

Plesk -> domains -> domainname -> Web directories -> preferences
 
As it says in his original post, those are the steps that he tried and it's returning an 403 error when you type in plain http://domain.com

You can use the following simple PHP code to perform a redirection to https, if you have a PHP based site. Actually, you can use this PHP code as a base to make the redirection work regardless of the script engine you use.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>

<?php

$https_url = "https://domain.com";

if ($_SERVER["HTTPS"] == "Off")

print '<meta http-equiv="Refresh" content="0; URL='.$https_url.'">'

?>


<!-- here goes your content>

</head>
<body>

</body>
</html>
 
Also redirection can be used as workaround, I think you also need to set that domain as defail on Ip.
Plesk CP -Server-IP management- ip - address line - hosts column select host check set as default.

John S.G.
 
Back
Top