Frequently Asked Questions

FAQ / General

How to Fix the Mixed Content Error on Joomla

Fixing mixed content errors on a Joomla site involves ensuring all resources are loaded over HTTPS. Here s a step-by-step guide:

1. Enable HTTPS in Joomla Configuration

Go to System -> Global Configuration in your Joomla admin panel.

Under the Server tab, find the Force HTTPS setting and set it to Entire Site.

Save the changes.

2. Update URLs in the Database

Use a tool like phpMyAdmin to search and replace http:// with https:// in your database.

Alternatively, use an extension like DB Replacer to perform the search and replace operation.

3. Update Media URLs

Ensure all media files are referenced with HTTPS URLs. You may need to manually update URLs in articles, modules, and other content.

4. Use an Extension to Force HTTPS

Install an extension like ReReplacer to dynamically replace http:// with https:// in your site's output.

5. Check Template and Extensions

Ensure that your template and extensions load resources (scripts, stylesheets, images) over HTTPS.

Manually update template files and extension files if necessary.

6. Update .htaccess File

Edit your .htaccess file to enforce HTTPS. Add the following code:

apache

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

7. Use a CDN

If you're using a Content Delivery Network (CDN), ensure it's configured to serve content over HTTPS.

Update CDN settings and purge the CDN cache.

8. Clear Caches

Clear Joomla cache by going to System Clear Cache.

Clear browser cache and CDN cache if applicable.

9. Manual Checks

Manually inspect your site's source code to identify any remaining http:// references and update them to https://.

10. Check External Resources

Ensure that any external resources your site loads (like fonts, scripts, or images from other domains) are served over HTTPS.

If an external resource is not available over HTTPS, consider hosting it locally or finding an HTTPS alternative.

11. Online Tools for Checking Mixed Content

Use online tools like Why No Padlock or SSL Checker to identify and resolve mixed content issues.

Summary

By following these steps, you should be able to resolve mixed content errors on your Joomla site, ensuring that all resources are loaded securely over HTTPS.