When specifying the https protocol in the address bar, Wordpress flows into an endless loop of redirects. I can not identify the problem. I tried to disable all plugins and change themes. Nothing helps. Admin https works fine, but the site does not load.

here is my .htaccess:

# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress 

I also tried to set WordPress Address (URL) and Website Address (URL) with https in the administration panel, the same does not help. Updated permalinks, also nothing.

WP 4.3 version

  • Do you have a bunch of nginx + apache? - Visman
  • maybe you have files for http and https are in different folders (maybe the server is so configured) and both will redirect to each other. - Saidolim
  • Yes, I have a bunch of nginx + apache. Where can I see server settings that affect this redirect? - ijakparov
  • Show the Apache and nginx virtual hosts configs. Directly in the message, using the editing function. - AntonioK

1 answer 1

Add in .htaccess line:

 SetEnvIf X-Forwarded-Proto https HTTPS=on 
  • Do you think for 1.5 years the problem did not dare? ;) - SeVlad
  • 2
    @SeVlad solution may be needed by others. - Vadizar
  • How did you diagnose the problem? Why does it arise and why does your decision win it? Can I answer the question more succinctly? No one can already appreciate it after such a time without detailed explanations. - ReinRaus