Skip to content
Security2 min read

What is mixed content?

Short answer

Mixed content is a page opened over HTTPS that requests some of its files, such as images, scripts or CSS, over unencrypted http. Browsers block the scripts and warn about the rest, so the site looks insecure or its layout breaks.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Types of mixed content
  2. How to find it
  3. How to fix it
  4. On ArabyHost

You installed an SSL certificate and opened the site over https, but the padlock doesn’t appear, or the styling vanished, or the homepage slider stopped working. The usual cause is old links starting with http:// inside the page.

Types of mixed content

Type Examples What the browser does
Active JavaScript, CSS files, iframes Blocks them entirely, breaking features or layout
Passive Images, video, audio Tries to load them over https automatically; blocks or warns if that fails

Active content is the more dangerous kind, because whoever intercepts a script can change the whole page.

How to find it

Open the page, press F12 and go to the Console tab. You’ll see a message like:

Mixed Content: The page at 'https://example.com/' was loaded over HTTPS,
but requested an insecure script 'http://example.com/js/app.js'.
This request has been blocked; the content must be served over HTTPS.

The message names the exact file, so you know where to look.

How to fix it

  1. In WordPress: make sure the site address under Settings → General starts with https://.

  2. Replace links in the database: with a search-and-replace plugin, or with WP-CLI if it’s available to you over SSH:

    wp search-replace 'http://example.com' 'https://example.com' --all-tables --dry-run

    --dry-run shows how many changes would be made without making them. Remove it to apply them, after taking a backup.

  3. Check theme files and any hard-coded links to outside services.

  4. As a stopgap, send the header Content-Security-Policy: upgrade-insecure-requests so browsers request every file over https.

More detail is on the mixed content warning page.

On ArabyHost

The free certificate is issued automatically through AutoSSL and Let’s Encrypt, so all that’s left is fixing the links inside your site. On AI/Developer plans you can run replacement commands over SSH; on other plans, use a search-and-replace plugin. JetBackup keeps a daily backup to fall back on if something goes wrong. Once it’s fixed, purge LiteSpeed Cache or any other caching plugin so old copies of your pages don’t linger, then turn on the permanent redirect as described in the force HTTPS guide.

FAQ

Why did the problem appear right after enabling SSL?

Old links are stored in full inside your content and database as http, and a certificate doesn't change them. They have to be replaced with https links.

Does mixed content affect SEO?

Indirectly: the "Not secure" warning lowers visitor trust, and blocked scripts can break parts of the page. Fixing it is part of a proper move to HTTPS.

Is a plugin enough to fix it?

URL-rewriting plugins hide the problem at render time, but the cleaner fix is to replace the links in the database once and then remove the plugin.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.