Why are some images not loading on my website after installing an ssl certificate
Summary
This guide helps you troubleshoot and resolve: Why are some images not loading on my website after installing an ssl certificate. Follow the steps below to fix the issue.
Common Causes
After installing an SSL certificate and forcing your website to load over HTTPS, you may notice that certain images, stylesheets, or scripts fail to appear. Browsers might also display a "Not Secure" warning or a broken padlock icon in the address bar. This happens because some elements on your pages are still being requested over an unsecured HTTP connection rather than HTTPS. This is known as a mixed content error, and it prevents browsers from considering the page fully secure.
Quick Fix Steps
- Open your website in Google Chrome or Microsoft Edge.
- Right-click anywhere on the page and select Inspect or press
F12. - Click the Console tab in the developer tools panel.
- Refresh the page and look for warnings containing the phrase "Mixed Content" or "blocked: mixed-content".
- Note the full URLs listed in these warnings so you can update them in your website files.
Detailed Instructions
Identify Mixed Content Errors
Modern browsers block insecure content loaded on secure pages to protect visitors. When an image or script is called using http:// instead of https://, the browser will refuse to load it and log an error in the console. These blocked assets often appear as broken images or missing styles on your live site.
Update Hard-Coded Links in Website Code
- Connect to your hosting account using FTP or your hosting control panel's file manager.
- Open your theme files, template files, or page source in a text editor.
- Search for any instance of
http://within image tags, stylesheet links, or script references. - Change
http://tohttps://for assets hosted on your own domain. - Save the file and upload it back to the server if you edited it locally.
- Clear your website cache and refresh the page to verify the assets load correctly.
Only change links to assets hosted on your own domain. Linking to external resources over HTTPS may still fail if the third-party server does not support a secure connection.
Update Content Management System Settings
If you use a content management system such as WordPress, Joomla, or Drupal, the site URL may still be configured to use HTTP.
WordPress
- Log in to your WordPress administration dashboard.
- Navigate to Settings > General.
- Update the WordPress Address (URL) and Site Address (URL) fields to use
https://. - Click the Save Changes button.
- Clear any caching plugins and refresh the page.
Joomla
- Log in to your Joomla administrator panel.
- Navigate to System > Global Configuration.
- Click the Site tab.
- Set Force HTTPS to On or Entire Site.
- Click Save & Close.
Drupal
- Log in to your Drupal administration dashboard.
- Navigate to Admin > Configuration > System > Site information.
- Update the Site name and site URL fields to use
https://. - Click the Save configuration button.
Search and Replace URLs in the Database
Old HTTP links may be stored inside your website database, particularly within post content, page content, and widget areas. A simple find-and-replace across your database can update these references in bulk.
- Create a full backup of your website database.
- Use a search and replace tool compatible with your content management system.
- Search for your domain using
http://and replace it withhttps://. - Run the replacement and verify that mixed content warnings no longer appear.
Troubleshooting
Check .htaccess Redirect Rules
Your server configuration may not be redirecting all traffic to HTTPS. Check your .htaccess file for redirect rules.
- Connect to your hosting account using FTP or file manager.
- Locate the
.htaccessfile in your website's root directory. - Confirm that a 301 redirect rule is present to force all HTTP traffic to HTTPS.
- Ensure the redirect is applied site-wide, not just to the homepage.
- Save the file and test your website in a private browsing window.
Check CDN and Cloudflare SSL Settings
If you use a content delivery network such as Cloudflare, incorrect SSL settings can cause mixed content errors.
- Log in to your CDN provider's dashboard.
- Navigate to the SSL/TLS settings section.
- Ensure the encryption mode is set to Full or Full (Strict), not Flexible.
- Purge the CDN cache after changing SSL settings.
- Clear your browser cache or test in an incognito or private browsing window.
Content Security Policy Headers
Content Security Policy (CSP) headers can block mixed content even after you update your URLs. If your site sends a CSP header with upgrade-insecure-requests or specific img-src and script-src directives, verify that these policies allow HTTPS resources. Adjust your CSP headers in your server configuration or .htaccess file if assets are still being blocked.
Images Still Not Loading After Updates
- Clear your browser cache or test in an incognito or private browsing window.
- Clear any server-side or content management system caching.
- Confirm that your SSL certificate is installed correctly and covers both the www and non-www versions of your domain.
External Images or Embedded Content
- Images hosted on other websites will only load securely if those external servers support HTTPS.
- If an external resource is only available over HTTP, consider hosting the image on your own server or finding a secure alternative.
Resolving mixed content errors ensures that your website displays the full padlock icon, protects visitor data, and maintains trust with your audience. 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?
💻 Open a Ticket