SSL - Force SSL in Joomla

To make it easier to get in touch with us, from the 24th of March 2016 all support tickets will need to be submitted from your Crucial Control Panel.

How To Force SSL In Joomla

Forcing SSL in Joomla requires editing 2 files. You can do this either using FTP or the cPanel File Manager (click here for a guide on using this tool). Both files are located in the root folder (usually called public_html)

1 - The configuration.php file

Find the line that says $live_site = '';



Between the quotes, add your domain name, including the ssl portion



Make sure to save the file once you've done this.


2 - The .htaccess file (it's hidden by default, click here for a guide on editing it)

NOTE: By default, the htaccess file in Joomla is named htaccess.txt. To enable this file, rename it to .htaccess

You need to add this code to the top of the file

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


The page should look like this



Once those 2 things are done, SSL should be forced by default for all pages on your Joomla site.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk