Home › Knowledgebase › KB-1378

Why Is My Website Showing Mixed Content Errors And How Do I Fix Https?

Summary

This guide helps you troubleshoot and resolve: Why Is My Website Showing Mixed Content Errors And How Do I Fix Https?. Follow the steps below to fix the issue.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

Common Causes

Mixed content occurs when a website loads over a secure HTTPS connection but pulls certain resources, such as images, stylesheets, scripts, or iframes, over an unsecured HTTP connection. Modern browsers often block these insecure elements, which can result in missing imagery, broken page layouts, or security warnings that reduce visitor trust. This article explains how mixed content errors occur, the impact on site security and SEO, and the steps required to identify and update insecure resource URLs so that all assets are served over HTTPS.

Identify Mixed Content Errors

  1. Visit your website using https:// in your browser.
  2. Look for the padlock icon in the address bar. If it shows a warning triangle or says "Not secure," mixed content is likely present.
  3. Right-click anywhere on the page and select Inspect or press F12.
  4. Click the Console tab in Developer Tools.
  5. Refresh the page using F5 or Ctrl + R (Windows) / Cmd + R (Mac).
  6. Review the list of errors. Mixed content warnings typically read: Mixed Content: The page at '...' was loaded over HTTPS, but requested an insecure resource 'http://...'.

Alternative identification methods include using online mixed content scanners or browser extensions designed to detect insecure resources on a page. These tools can help analyse your site if manual inspection does not reveal every insecure URL.

Update Insecure Resource URLs

  1. Open your website files using an FTP client, file manager, or your content management system.
  2. Search your HTML, CSS, JavaScript, and template files for instances of http://.
  3. Change internal resource links from http:// to https://. For example:
    • <img src="http://yourdomain.com.au/image.jpg"> becomes <img src="https://yourdomain.com.au/image.jpg">
    • <link rel="stylesheet" href="http://yourdomain.com.au/style.css"> becomes <link rel="stylesheet" href="https://yourdomain.com.au/style.css">
  4. Update any hard-coded HTTP URLs in your website database. CMS-driven sites often store content, image paths, and metadata in database tables rather than static files.
  5. Save your changes and upload the modified files if necessary.

Update Database URLs for WordPress

  1. Create a full database backup before making any changes.
  2. Install a reputable search and replace plugin from the WordPress plugin directory.
  3. Run a search for http://yourdomain.com.au and replace it with https://yourdomain.com.au across posts, pages, and post meta tables.
  4. Navigate to Settings > General.
  5. Update the WordPress Address (URL) and Site Address (URL) fields to use https://.
  6. Click Save Changes.

Update Database URLs for Other CMS Platforms

For Joomla, Drupal, or other database-driven platforms, use the platform's native search and replace tool or run a careful SQL search and replace operation on your database tables. Always back up your database before performing bulk URL replacements, as incorrect changes can break serialized data or site functionality.

Force HTTPS Redirects on Apache Servers

  1. Access your website's .htaccess file via FTP or file manager.
  2. Add the following code at the top of the file to redirect all HTTP traffic to HTTPS:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  1. Save the file.
  2. Test your website by visiting http://yourdomain.com.au — it should automatically redirect to https://yourdomain.com.au.

If you use a different web server, such as Nginx, configure the redirect in your server block or hosting control panel instead.

Update SEO Settings After HTTPS Migration

  1. Update all internal links, canonical tags, and sitemaps to use https:// to avoid SEO dilution and duplicate content issues.
  2. Submit your updated sitemap to Google Search Console.
  3. Use the URL Inspection tool in Google Search Console to request indexing of key pages.
  4. Monitor coverage reports for any crawl errors related to HTTP URLs.

Troubleshooting

Warnings Persist After Updating URLs

Third-Party Resources Load Over HTTP

SSL Certificate Issues

Do not edit core website files without creating a backup first. Incorrect changes to .htaccess or theme files can take your website offline.

Resolving mixed content errors ensures that every element on your page is delivered securely, protects visitor data, and helps maintain trust and search engine visibility. If you are unable to locate or fix the insecure resources, Open a Ticket for assistance.

Remember — If you host with us, you don't need to do this yourself — just Open a Ticket and our Brisbane team will get it sorted.

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket