L
L
ligisayan2018-03-13 17:52:27
Digital certificates
ligisayan, 2018-03-13 17:52:27

Why do not all pages display correctly over https?

Hello. There is a wordpress website . We decided to move from http:// to https:// , the hoster himself provided an ssl certificate and installed it.
After changing the settings to https://
5aa7e3d767c4e183293501.png
in the admin panel, the main page is displayed normally, without errors and with a protected icon, but the rest of the internal pages via https:// open without scripts and styles, although they are all standard and are taken from the standard wordpress
script configuration file -loader.php , where all paths are relative.
But on the main page they are formed correctly .. What could be the reason for this and how to fix it?
The rest of my secure sites are located oncloudflare service with
cloudflare flexible ssl plugin installed and no problems..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
ligisayan, 2018-03-13
@ligisayan

I found a solution - I wrote the following in wp-config.php : and in the .htaccess file

RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
RewriteCond %{SERVER_PORT} !^443
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ https://yourdomain.by%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP:X-SSL-Emu} !on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question