🍁 Autumn Sale — Up to 70% discount for hosting and domains
activate now
Frequently Asked Questions • Dev

How can I redirect a domain from HTTP to HTTPS?

The steps presented in this article describe the procedure by which you can redirect a domain from the HTTP version to HTTPS

18
Views 3790Updated 5 aniPublished on 07/07/2018by Cătălin A.

To redirect a site to the secure HTTPS version, we can use the .htaccess file in the root directory of the site. This file can be edited either through the File Manager available in the control panel or via FTP.

Once we have opened the file, we will add the following lines:

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}


After saving the changes, the domain will be redirected to the secure HTTPS version.

In case we are using CMS applications (Wordpress, Prestashop, Magento, etc.), we will need to modify certain settings for everything to work correctly.
Below you can find dedicated tutorials for the most common CMSs:


SSL Wordpress Settings
SSL Prestashop Settings
SSL Magento Settings

Similar Articles

Views 3,790
Updated 5 years ago

The steps presented in this article describe the procedure by which you can redirect a domain from the HTTP version to HTTPS

Views 1,617
Updated 7 years ago

Find out how to redirect a domain to the main domain using cPanel, by adding alias domains or as addon.

Views 1,002
Updated 1 year ago

HTTP/2 is available on Personal, Business, Reseller, and VPS hosting packages with cPanel/WHM, requiring HTTPS to take advantage of its benefits.