How to force HTTPS on your website

You can permanently migrate HTTP traffic to HTTPS by adding the following code at the top of .htaccess file on your website running by Apache or LiteSpeed:

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


If you don't manage to do it, please open a support ticket and we'll do it for you.

Update:
On cPanel v80+ you can force SSL redirection from cPanel > Domains interface.
Set Force HTTPS redirection to ON

  • HTTPS, redirect, ssl
  • 3655 Users Found This Useful
Was this answer helpful?

Related Articles

How to access WHM?

We provide WHM access only to our customers on Reseller hosting, Cloud/VPS Hosting and Dedicated...

Can i use phpMyAdmin outside cPanel?

The phpMyAdmin tool available in cPanel is bundled with it and can be used only if you are...

What is an Inode or File Usage indicator in cPanel?

An inode is a record in a disk table, which contains information about a file or folder such as...

How to reduce the number of inodes my account uses?

The number of inodes equals the total number of files and folders on your web hosting account. In...

How to access cPanel?

1) You can access cPanel from Customer Area (AKA: One Portal) Login to customer area From...