E
E
Eugene2020-06-18 19:33:40
WordPress
Eugene, 2020-06-18 19:33:40

How to fix Mixed Content error when installing Wordpress?

I'm trying to install wordpress on hosting, but styles and scripts are not loaded. In the source code, it shows that scripts and styles are taken over http, although on the site https. How can this situation be corrected?
5eeb96c75fd6c832738975.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2020-06-18
@iamd503

Solved a problem. I installed it as WP as is and using the Really Simple SSL plugin everything worked.

O
Orkhan Hasanli, 2020-06-18
@azerphoenix

And the whole point is this - apache + nginx.
Scripts and styles are returned statically. And you don’t have a redirect from http to https from nginx. Hence the mixed content.
Solutions - first set up a static redirect from http to https. Then you will be able to install the site via https.
Another option is to install the site via http. And then use the better search replace plugin to replace links from http to https. But the problem of mixed content is likely to remain

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question