How do I redirect a Website to HTTPs? Print

  • Plesk, cPanel, SSL
  • 123

Why should I force HTTPs on my site?

HTTPs is the secure version of HTTP. Alongside SSL it helps ensure that privacy and data integrity is maintained across your site. 
The importance of HTTPs and SSL is well documented with browsers such as Google Chrome showing sites as untrustworthy or dangerous if they are not active. 

Interested in learning more about SSL and the different types of certificates?

How do I force HTTPS on my Site?

Forcing HTTPs can be achieved manually or through tools within your chosen panel: cPanel or Plesk. 


To redirect your website to HTTPS. Enter the following to your .htaccess file.

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

Save the file, then test via your browser.

Unsure how to access the .htaccess folder?

.htaccess is a dot file, these files are hidden by default. To access the file you will first need to enable viewing of hidden or dot files within the settings area of your chosen panel or FTP software. 
For instance in cPanel this is how you enable a dotfile

cPanel search settings


If you have Plesk you can avoid manual modifications of .htaccess. You will need to have a valid SSL installed.

  1. Log in to Plesk and click Websites & Domains in the left sidebar
  2. Choose the domain to configure and click Hosting Settings
  3. Select SSL/TLS support and Permanent SEO-safe 301 redirect from HTTP to HTTPS checkboxes under Security
  4. Select corresponding SSL certificate from the Certificate drop-down list
  5. Confirm changes by clicking OK button


If you have cPanel you can choose to use the AutoSSL feature which will automatically install an SSL certificate and enable forced HTTPs. 

  1. Log into your cPanel account and navigate to SSL/TLS Status in the Security section.
  2. Click the domain you'd like to install an SSL on.
  3. Click Run AutoSSL.
  4. AutoSSL will take a few minutes to finish. When it completes successfully the page will update with a success notification.
  5. cPanel will then request a certificate from the issuing authority. 
  6. Upon successful completion the website will be secured with SSL. 

Was this answer helpful?

« Back