Mixed content means the page is “mixed”: the document itself is encrypted, but some of what it loads isn’t. Browsers handle this in two ways. Active content (scripts, CSS and iframes) is blocked outright. Images and media are automatically retried over https://, and simply don’t show if that fails. The result can be an unstyled page, a broken menu, or a missing padlock. The concept is explained in mixed content.
How to find the offending files
Open the page, press F12 and go to the Console tab. You’ll see messages like:
Mixed Content: The page at 'https://example.com/' was loaded over HTTPS,
but requested an insecure image 'http://example.com/logo.png'.
This content should also be served over HTTPS.
Each message names the exact URL. If it says This request has been blocked, the file didn’t load at all.
Common causes
- The site moved to HTTPS but old URLs are still stored in the database as
http://. - The WordPress address is still set to
http://. - Hard-coded URLs in theme files, CSS or widgets.
- Third-party files from a service that doesn’t support HTTPS.
- A cached copy of the page from before the fix.
How to fix it
- Make sure the whole site is on HTTPS: a valid certificate plus a permanent redirect, as in the force HTTPS guide.
- Fix the WordPress address: in Settings » General, make both URLs start with
https://. - Replace URLs in the database: take a backup first, then use a search-and-replace plugin that handles serialized data, replacing
http://example.comwithhttps://example.com. For post content only, you can run this in phpMyAdmin (adjust the table prefix if yours differs):
UPDATE wp_posts
SET post_content = REPLACE(post_content, 'http://example.com', 'https://example.com');
- Check the theme and files: search for
http://in theme and CSS files via Files » File Manager; if you use Elementor, run its Replace URL tool. - Handle third-party files: switch to the HTTPS URL if the provider supports it; otherwise host the file yourself or remove it.
- Purge caches: in LiteSpeed Cache choose Purge All, and purge Cloudflare if you use it.
A fallback in .htaccess
You can ask browsers to upgrade every request to HTTPS by adding this line to .htaccess:
Header always set Content-Security-Policy "upgrade-insecure-requests"
It helps as a stopgap, but it can’t rescue third-party files that don’t support HTTPS, and it doesn’t replace fixing the URLs themselves.
Prevention
- Enable HTTPS before publishing content, so URLs are stored as
https://from the start. - Use relative URLs such as
/images/logo.pngin templates. - Check key pages in the Console after every migration or domain change.
On ArabyHost
A free SSL certificate is issued automatically through AutoSSL, so all that’s left is fixing the URLs. Take a copy before editing the database; daily backups (JetBackup) are also available to restore from if something goes wrong. phpMyAdmin and File Manager are in cPanel, which opens with one click from the Araby Panel, and LiteSpeed Cache should be purged once you’re done. If the “Not secure” label has a different cause, see “Not secure” in the address bar.
FAQ
Is mixed content actually a security risk?
Yes. A script loaded over http:// can be modified in transit, giving an attacker control of the whole page, which is why browsers block it. Images are lower risk but still remove the page's secure status.
I fixed the URLs but still see the warning. Why?
Usually an old cached copy. Purge your site cache (for example LiteSpeed Cache) and Cloudflare's cache if you use it, then reload in a private window.
Does an SSL plugin for WordPress fix it permanently?
Some plugins rewrite URLs on the fly, which hides the problem without fixing the stored data. It's cleaner to replace the URLs once in the database and then drop the plugin.