Frequently Asked QuestionsDev

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 2521Updated 3 aniPublished on 07/07/2018by Cătălin Adrian

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

What is Shopify?Frequently Asked Questions /DNS

Discover how to configure the domain for your Shopify store using Hostico services. Benefit from technical support and a configurable DNS zone for quick and secure integration.

2
by Mark Dohi
Views 179
Published on 06/02/2025