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

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to create an Email Account on cPanel

Please do the following to create an Email account on cPanel: Login to cPanel Look for Email...

Can i use phpMyAdmin outside cPanel?

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

Domain (example.com) has exceeded the max defers and failures per hour

If you are receiving an error similar to "Domain example.com has exceeded the max defers and...

How to access cPanel?

You can access cPanel directly using your domain or server IP in the following...

How to change PHP version and extensions (cPanel on CloudLinux)

We're going to explain how to change the PHP version and install required PHP extensions to run...