Answer the question
In order to leave comments, you need to log in
How to display images on https?
I don't understand the logic. On http the image is displayed and on https it is not. I emphasize! Links to images are relative. Why doesn't it load?
Answer the question
In order to leave comments, you need to log in
Hello!
What you are facing - CORS
The reasons may be different.
If the links are relative, that is, the http and https protocols are not specified, but there is no redirect from http to https, then the following reason is presumably:
You most likely use apache + nginx. Accordingly, nginx is responsible for the statics. And it outputs via http, since the static redirect is not configured. Pay attention to whether all image formats, css & js files are output via http. Write to the hoster and let him add the necessary configs.
And if the links are absolute, then replace http with https using the Better Search Replace plugin
I give 95% that this is a caching plugin, clear the cache and it should work fine.
UPD: redirect all requests from http to https.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question