Articles on: FAQs

Why am I getting mixed content or non-https errors

Mixed content issues arise when a secure HTTPS request loads a web page with both HTTPS and HTTP content. For instance, if your HTTPS site at https://example.com/ requests a file from a non-HTTPS URL like http://example.com/style.css.

This error often occurs when your database contains HTTP URLs instead of HTTPS.

To fix this:

Install Better Search Replace plugin
Search for "http://your-site.com" and replace with "https://your-site.com"
Select all tables
Disable 'Run as dry run'
Run Search/Replace

This process will update all HTTP URLs in your database to HTTPS. You can uninstall the plugin afterward.

Make sure to "Purge everything & preload" after replacing all http with https

Updated on: 23/10/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!