K
K
kafelby2016-04-12 02:24:50
WordPress
kafelby, 2016-04-12 02:24:50

How to solve problem with HTTPS and Wordpress?

The problem is when switching to HTTPS, the address of the site with https is registered in the admin panel, the config contains define('FORCE_SSL_ADMIN', true);
MySQL also has all urls in https format. I dug up all the manuals, tried a lot.

But on the main page https://hyrma.by/ everything is loaded (both JS and CSS), but on the contact page https://hyrma.by/kontakty/ or any other CSS and JS is not loaded at all. Tell me where to dig? What could be the problem? How can it be that everything is fine on the main page, but not on other pages?

PS
No third party plugins installed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kafelby, 2016-04-12
@kafelby

wp-config says:
define('FORCE_SSL_ADMIN', true);
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
$_SERVER['HTTPS']='on';
Does not help!
The solution was to add to wp-config.php the line $_SERVER['HTTPS'] = 'on';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question