SSL not working because of a theme image

Hello,

I have a website with the theme Kudos http://www.cmiuniversal.com/ and I just migrated the site to SSL.

My homepage is working perfect with https, however, the rest of the pages give a mixed content error because of this:

Mixed Content: The page at ‘https://www.cmiuniversal.com/empresas/’ was loaded over HTTPS, but requested an insecure image ‘http://www.cmiuniversal.com/wp-content/themes/kudos/assets/img/preload_pattern.png’. This content should also be served over HTTPS.

The thing is. That image should be loaded with https and if I copy that URL with https I can acces the image without a problem. I don’t understand why it is calling the http version of it.

Because of this image my entire site (excluding my home page is not loading as secure).

I have tried different plugins and I have also forced the SSL with Cloudflare with the SSL options and adding an always use https page rule.

Nothing seems to work and I don’t know what else to do

Thanks

Hello @hdeprada

Can you contact to hosting provider?

Thanks :slight_smile:

They told me they don’t give WordPress support :frowning:

I have the same problem in `https://www.sirenaplus.gr. I see mixed content and many errors in google search console. The problem is solved when manually inspect all URL’s and put in SSL. The programmer have mistake in .htaccess and doing very serious problem to SSL in site.

Hello @sirenaplusgr that seems to be it. Could you tell me which code should I put on the .htaccess file?
Thanks a lot!

I’m asking from my colleague to give me the code and send it in PM. :slight_smile:

Thanks! I will be waiting for it! This is driving me crazy! :slight_smile:

I am using this code in my .htaccess file:
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteCond %{REQUEST_URI} !^/[0-9]+…+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

However it is not working and I keep getting the same mixed content error because of that image. Any help?
Thanks

An htaccess file will not be able to fix this issue, because htaccess rules only apply after the image starts to load. The browser won’t let the image load at all because it isn’t secure (due to being hardcoded as “http://”).

I would recommend that you contact the author of the theme for support. Here’s their support information - https://themeforest.net/item/kudos-a-fresh-theme-for-creative-businesses-individuals/17946272/support

Try to Remove the link from the image and check again. One of my client was facing same problem.