Here we will cover how to set up a secure redirect on a Joomla site using the configuration.php file to force HTTPS. This must be done if your Joomla site shows up as insecure or has a broken padlock.
If you want to prevent visitors from being able to access the HTTP (insecure) version of the site, you can use these same steps.
Related Articles
Force HTTPS in .htaccess
Enable Auto SSL
configuration.php File Method
- Log into cPanel
- Locate File Manager
- Access the domain's document root
- Find and edit the
configuration.php
file- Right-click the file and select Edit
- Right-click the file and select Edit
- Locate the line
public $force_ssl = '0';
- Change the
0
to2
and save the file - Refresh the site to see that the site is now using HTTPS.
.htaccess File Method
- Edit the .htaccess file and add an HTTPS redirect
This article covers Joomla versions 3.x - 4.x.
If an updated version is available and not documented here, drop us a comment so we can work to get it updated for you as soon as possible!
Comments
0 comments
Article is closed for comments.