Playbook
security
medium
Fix mixed content warnings (HTTP on HTTPS)
Your HTTPS pages load some assets over HTTP. Browsers block them and the padlock turns yellow. Here is how to clean it.
20 minutesLast reviewed 2026-06-09
What is happening
Modern browsers block any <script>, <iframe>, or AJAX request loaded over HTTP from an HTTPS page. Images and CSS loaded over HTTP are downgraded (loaded but with a warning, sometimes blocked entirely in newer Chrome).
Fix it in 3 steps
http://example.com/img.png to https://example.com/img.png (or just //example.com/img.png if both schemes are supported).http:// to https:// for resources on your own domain.Bulk fix in a database
WordPress / SQL CMS sites can run a search-replace across the database:
UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://yourdomain.com', 'https://yourdomain.com');
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'http://yourdomain.com', 'https://yourdomain.com');Always back up first. The Better Search Replace plugin does the same thing safely with a dry-run mode.
Common gotchas
http:// literals.What this doesn't do
This is for the page-level mixed-content case. If your whole site is HTTP, you need to install an SSL certificate first — see Fix an expired SSL certificate.