Even today, most website providers are making all their customers’ websites HTTPS-compliant by default. So if you’re still running your Joomla websites or blogs not using HTTPS, then you’re probably doing it wrong. This brief tutorial is going to show students and new users how to convert existing Joomla websites from HTTP to HTTPS easily without losing your audience. When you’re done, all traffic to your sites will be redirected to the HTTPS version of your content. To get started with migrating your Joomla sites to HTTPS, continue with the steps below:
Setup Let’s Encrypt Free SSL / TLS
The first step going all HTTPS is obtaining SSL/TLS certificates for your domain or site. Since Let’s Encrypt is free, continue below to obtain your free certificates to use. Before obtaining Let’s Encrypt certificates, make sure your Nginx configuration is set up correctly. for your site config file, make sure the ServerName and ServerAlias are defined. When those settings are confirmed, continue below to get the certificate for your domain name. To get the Let’s Encrypt SSL/TLS client installed on Ubuntu, run the commands below After that run the commands below to obtain your free Let’s Encrypt SSL/TLS certificate for your site. After running the above commands, you should get prompted to accept the licensing terms. If everything is checked, the client should automatically install the free SSL/TLS certificate and configure the Nginx site to use the certs. Choose Yes ( Y ) to share your email address This is how easy is it to obtain your free SSL/TLS certificate for your Nginx-powered website. Pick option 2 to redirect all traffic over HTTPS. This is important! After that, the SSL client should install the cert and configure your website to redirect all traffic over HTTPS. The highlighted code block should be added to your Nginx Joomla configuration file automatically by Let’s Encrypt certbot. Your Joomla site is ready to be used over HTTPS.
Change the Joomla Site URL
After configuring Nginx to use HTTPS above, change Joomla site URL to use HTTPS. this can be done by editing the configuration.php file in your Joomla root directory. Open Joomla configuration.php file in your Joomla root directory and add or edit the lines below: Save the file Now you should be able to log on to Joomla admin dashboard via HTTPS.
Force HTTPS for the Entire Site
Finally, log on to Joomla dashboard and navigate to System ==> Global Configuration ==> Server and force HTTPS for the entire site. When you’re done, your Joomla site should be HTTPS compliant. This should do it. After that, your site should be HTTPS compliant. Congratulations! You’ve successfully converted from HTTP to HTTPS To set up a process to automatically renew the certificates, add a cron job to execute the renewal process. Then add the line below and save. The cron job will attempt to renew 30 days before expiring You may also like the post below: