How to enable SSL in Thelia

Review on how to force SSL use on your Thelia website

Thelia is an e-commerce software that will allow you to build up your online store. This means that you are about to start selling products online and there will be transactions going through your website. You can make such transactions protected with the use of SSL certificate, installed on your domain. This allows better security for the money transactions going through your website and it will make it look more professional in front of your customers.


To install and force the use of SSL on your Thelia website, you need to complete two simple steps.


Step 1 Get SSL certificate

The first step is to get a valid and dedicated SSL certificate for your domain. The process is entirely handled by our technical support team and you do not have to do anything on your end. You can get such an SSL certificate via your Client Area


Step 2 Force SSL

We will describe the steps you need to complete in order to force the use of SSL on your domain. This means that each time someone attempts to access your website, s/he will be redirected to the secured https protocol, even if they do not enter it in the first place. 


First you need to access your cPanel account and then the File Manager service.


Access File Manager in cPanel


Select the Home Directory and Show Hidden Files (dotfiles) options. Then click on the Go button to proceed.


File Manager options in cPanel


Access the directory, where you have installed Thelia. This is just outside the web/ directory of your website. Then, simply locate the .htaccess file, select it and click on the Edit button at the top menu.


Edit files in File Manager


Enter the following code:


RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$$1 [R,L] 


Where you only need to change with your actual domain name. Once you complete that, click on the Save Changes button at the top-right corner of the screen.