How To Find And Fix Mixed Content On Your SSL Website
If you are using SSL, it is important that all your website contents are served via https. This is the only way a browser will declare your website to be secure.
If there is any insecure content or mixed content, you will need to get rid of it, or else you will have an insecure website.
What is mixed content
Mixed content is a mixture of http and https links being served by your website. For example, you might have an image on your website that is based on an external website that is http. When it is served from your website, the browser will pick it up as insecure.
In addition, you may already have an old website. You would have to change out every link from your http://yourwebsite.com to https://yourwebsite.com. Missing one means the website will be seen as insecure.
How do I find mixed content
It is relatively easy to find mixed content.
- Go to your webpage
- Right click and choose “Inspect Element” or “Inspect”
- On the menu, choose “Console”
- You will see the mixed content displayed
You will see something looking like this:
Mixed Content: The page at ‘https://yoursite.com/blog/’ was loaded over HTTPS, but requested an insecure image ‘http://anotherwebsite.com/wp-content/uploads/2017/01/Social-Media-Assistant-Banner.png’. This content should also be served over HTTPS.
I encountered the error above on an SSL (https) website that was serving a banner ad from an external insecure (http) website.
How to fix mixed (insecure) content errors
The repair strategy will depend on what is causing the error. If it is an image (as in the case illustrated above), the simple fix is to upload the image to your SSL website and start serving it from there. You just need to bear in mind that your website cannot serve any http content or it will be insecure. Find the mixed content errors and fix them.
Mixed content errors are common on websites that previously used the http protocol. Yahjam Host therefore recommends that all websites use SSL. You never know when you might want to sell something from your website or even simply want people to login into your site. In other words, you never know when you will truly, desperately need SSL. Better to spend less than $15 per year than having the headache afterward to try and secure your old website.
Find out more about our SSL Certificates starting at only $14.95 per year.