Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hi guys,

I just installed an SSL certificate with CloudFlare and everything works well, except that the images are considered a mixed content at https://www.tableaux-sur-toile.com/

I change the define( 'K_SITE_URL', 'https://www...); in config.php
(I tried define( 'K_SITE_URL', '//www...); -> That doesn't work, but https works well.

Cloudflare settings are:
- full SSL
- always use https rule
- automatic https rewrite

But it still doesn't work. Images resources are still in HTTP (see attached)

I tried to force https in .htaccess as well.

All other resources are in https now, except the images.

Any idea?

Thanks,
Paolo

Attachments

note that the FAQ page works, and is secure, as there's no image.

https://www.tableaux-sur-toile.com/faq/
OK, got it.

In case it helps somebody, in the <header> add:

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

:D
Hi Cheesy,

I read all the related topics before posting and added your code as well.

In fact, I use your code for CloudFlare compatibility for years now.

But nevertheless, it didn't work.

Point taken, it might be because this website I just moved to https is a few years old. I just made another one at https://www.paolowebdesign.com/ and didn't have the problem, as all the images are freshly uploaded.

But since I looked for the solution during a few hours, I felt like sharing it. You never know when it can come in handy for somebody else...

:)

Plus, Couch didn't make any problem handling the images - everything appeared normally, even in the back-end. My https just didn't turn green, as the images were linked to the https version, thus creating the mixed passive content errors.
5 posts Page 1 of 1
cron