B
B
bossigorxxx2020-06-12 19:36:33
WordPress
bossigorxxx, 2020-06-12 19:36:33

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

3 answer(s)
O
Orkhan Hasanli, 2020-06-12
@azerphoenix

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

S
Sergei Chamkin, 2020-06-12
@Sergei1337

See the solution to this problem here
Forum with a solution

D
Dima Polos, 2020-06-12
@dimovich85

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 question

Ask a Question

731 491 924 answers to any question