How to Force SSL
You just installed SSL, but you can't find the secured padlock and HTTPS in front of your domain. Instead, your domain still loads with HTTP, and the insecure icon warns visitors to beware of your site.
This could be due to some unsecured links on your website. You will need to manually force SSL to ensure your site is fully secure.
Step 1: Confirm SSL Installation
First, ensure that SSL has been properly installed on your site. To do this, visit SSL Shopper to verify if the SSL is installed correctly.
Next, check why the padlock is not showing up in the browser by visiting Why No Padlock.
Simply type in the full URL of your website and get a detailed report about your SSL installation.
If you find any unsecured elements or errors, these will need to be addressed before proceeding.
Step 2: Forcing SSL with .htaccess
After confirming SSL is installed, you can force HTTPS by editing your
.htaccess
file in your hosting panel.Navigate to File Manager in your hosting panel and open the
public_html
folder.Locate and open the
.htaccess
file. If you cannot find it, ensure hidden files are visible, or create a new.htaccess
file.Scroll down to find the line
RewriteEngine On
.Insert the following code right below it:
Save the changes.
Congratulations! You have successfully forced HTTPS on your site.
Step 3: Verify the Changes
Go back to your browser, refresh the page, and check to see if the padlock appears. For extra confirmation, refresh the information on Why No Padlock to ensure that your site is fully secured.
If the padlock still doesn’t appear, check for mixed content errors, which might occur if some resources on your site (like images or scripts) are still being loaded over HTTP.
Last updated
Was this helpful?