How Do I Redirect HTTP to HTTPS?

Even with an SSL certificate installed, if a visitor opens your site with http:// the connection is not encrypted and the browser shows Not secure. That is why you should redirect all visitors to https:// automatically.

Redirect in Plesk (recommended)

  1. Log in to your Plesk panel at https://yourdomain.com:8443 or from the service page in your client area.
  2. On the Websites & Domains page, click Hosting Settings under your domain.
  3. Tick Permanent SEO-safe 301 redirect from HTTP to HTTPS.Plesk Hosting Settings HTTPS redirect option
  4. Click OK.

You can also turn on the same setting with the Redirect from HTTP to HTTPS switch on the SSL/TLS Certificates page.

Redirect with .htaccess

If you cannot use the panel setting, add these lines at the top of the .htaccess file in your site's main folder:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]

Extra steps for WordPress

  • Under Settings > General, change WordPress Address and Site Address to start with https://.
  • If pages still load images over http://, the padlock does not appear: Why is there no padlock?
ERR_TOO_MANY_REDIRECTS error
The redirect may be enabled in more than one place (panel, .htaccess, plugin). Use only one.
Need help? Open a support ticket from your client area or call +90 216 348 35 03.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What Is Let's Encrypt?

Let's Encrypt is a non-profit certificate authority that gives websites free SSL certificates....

How Do I Install a Free Let's Encrypt SSL Certificate in Plesk?

Let's Encrypt is a free SSL certificate that makes your site open securely with https://. In...

What Is SSL? What Does an SSL Certificate Do?

SSL (today called TLS) is the security protocol that encrypts the connection between a visitor's...

What Is a CSR?

A CSR (Certificate Signing Request) is a block of text that you create and send to the...

Why Is There No Padlock?

If the address bar shows Not secure instead of a padlock, something is wrong with your site's...

Powered by WHMCompleteSolution