How to Move a Joomla Site from HTTP to HTTPS

Joomla’s highly flexible core framework helps novice users easily set up and manage their sites. It also allows experienced developers to create sophisticated systems, and tap into unlimited possibilities. Whether you’re a novice or a pro, we highly recommend you learn how to move a Joomla Site from HTTP to HTTPS. And here’s why:

In today’s online environment securing websites with an SSL Certificate has become a necessity, and Joomla sites are no exception.

Adding an SSL Certificate to your website, and subsequently moving it from HTTP to HTTPS is a multi-step process. First, you need to buy the right SSL product for your site, then install it on your server, and only afterward perform the switch to HTTPS.

In this article, we discuss the last step and for it to work, you must have the SSL Certificate properly configured on your server. If you’re new to SSL Certificates, our SSL blog is packed with useful guides and tutorials to get you started. Here are just a few of them:

Assuming that you’ve already bought a certificate and successfully installed it, at this point you should be all set to move a Joomla site from HTTP to HTTPS. Double-checking your SSL server configuration is never a bad idea, so use this highly effective SSL toolkit to test your SSL installation. If you don’t find errors, proceed to the first step of the HTTPS transition.

Enable SSL on Joomla

Log into your Joomla backend, and navigate to System > Global Configuration. On the Server Settings, select Force HTTPS to “Entire Site”.Save your new setting before exiting.

Configure your configuration.php file

Use your cPanel, or an FTP client such as FileZilla to locate the configuration.php file in the root directory of your Joomla. Open the file with a text editor and find the following line:

var $live_site =”;

Replace it with:

var $live_site = ‘https://www.your-domain.com’;

Create 301-redirects to HTTPS

Change all existing URLS from HTTP to HTTPS version, to protect your SEO rankings, and let search engines update the index for your site as soon as possible. You can do this via a Joomla plugin, or manually in your .htaccess file. Add the following code to the bottom of the file.

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]

Avoid Mixed Content

All your content should be served over HTTPS. This includes images, video files, javascript, CSS, and so on. Make sure you load your images relative to the site root and change the absolute URLs if such exist.

Scan your theme’s code for potential HTTP links, and change them to HTTPS. Even one forgotten HTTP resource somewhere in your code may generate an SSL warning from the browser. Here’s how to fix mixed SSL content and prevent SSL errors.

Update your sitemap and robots.txt

Update your XML sitemap with the latest HTTPS links and send it to Google webmaster tools. Use Robots.txt file to control which pages will be crawled and indexed.

Save 10% on SSL Certificates when ordering today!

Fast issuance, strong encryption, 99.99% browser trust, dedicated support, and 25-day money-back guarantee. Coupon code: SAVE10

Written by

Experienced content writer specializing in SSL Certificates. Transforming intricate cybersecurity topics into clear, engaging content. Contribute to improving digital security through impactful narratives.