L
L
Lici2016-10-22 01:26:13
cloudflare
Lici, 2016-10-22 01:26:13

How to avoid https error for wordpress + cloudflare?

An example of a site - sovetneg.ru
Opens for me and immediately redirects to https://sovetneg.ru (HTTPS)
And it looks like without a CSS file - everything is broken, and in the browser bar there is a "broken" https icon.

Tell me how to solve this situation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2016-10-22
@alsopub

1) Does not redirect now
2) Replace all absolute links to css and scripts, etc. with relative ones (from the root), that is

<link rel='stylesheet' id='yarppWidgetCss-css'  href='http://sovetneg.ru/wp-content/plugins/yet-another-related-posts-plugin/style/widget.css?ver=4.6.1' type='text/css' media='all' />
change to
<link rel='stylesheet' id='yarppWidgetCss-css'  href='/wp-content/plugins/yet-another-related-posts-plugin/style/widget.css?ver=4.6.1' type='text/css' media='all' />
etc.

I
Igor Vorotnev, 2016-10-22
@HeadOnFire

Open the console in the browser, look at all the curses. There will be a list of files that you have linked via http instead of https. Show the list.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question