How do I redirect a domain from HTTP to HTTPS?

Frequently Asked Questions Technical | https | ssl | redirect
Find out the procedure by which you can redirect a domain from HTTP to HTTPS
by Ana RednicViews 919Updated now 1 yearPublished 25/10/2018

To redirect a site to the secure HTTPS version we can use the .htaccess file from the root directory of the site. These files can be edited either trough the File Manager available in the control panel or trough FTP.

Once we've opened the file, we'll 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 HTTPS secured version.

If we use CMS applications (Wordpress, Prestashop, Magento, etc.), we will need to change certain settings for everything to work properly.

Similar Articles

2
Can I test the services?Frequently Asked Questions General | hosting | test | hosting
It is not necessary to pay immediately after placing the order to benefit from the services. This article presents you with the opportunity to test the services.
by Mihai BobriucViews 1121Updated now 1 yearPublished 25/07/2018
How long does it take to activate my order ?Frequently Asked Questions Commercial | time | order | activation
Discover how long does it take to activate your order
by Ana RednicViews 871Updated now 1 yearPublished 25/10/2018
Do you accept customers outside of Romania ?Frequently Asked Questions Commercial | client | order | billing
Find out in this article if we accept customers outside of Romania
by Bogdan JitaruViews 775Updated now 1 yearPublished 14/12/2018
How do I host my primary domain from a sub-folder by using the .htaccess file?Frequently Asked Questions Tehnic | .htaccess | redirected | subfolder | public_html | domain | subdirectory
In this article we will explain how to host the primary domain in a sub-folder by using the .htaccess file.
by Mihai BobriucViews 710Updated now 1 yearPublished 18/08/2022
What is the credit system recurrence?Frequently Asked Questions Commercial | recurrence | credit | application | automatic
Recurrence on the credit system.
by Mark DohiViews 583Published now 1 yearPublished 07/05/2023