Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: https and css

Discussion in 'Misc WordPress Requests' started by joekillbill, Feb 6, 2018.

  1. joekillbill


    Reply To: https and css, by joekillbill

    Hi there,

    the problem of infinite redirections is solved just by adding the following lines in nginx.conf:

    map $http_x_forwarded_proto $thescheme {
    default $scheme;
    https https;
    proxy_set_header X-Forwarded-Proto $thescheme;

    The following instruction already there in the wp-config.php do the trick:

    if (isset($_SERVER[‘HTTP_X_FORWARDED_PROTO’]) && $_SERVER[‘HTTP_X_FORWARDED_PROTO’] === ‘https’) {
    $_SERVER[‘HTTPS’] = ‘on’;

    No need to add extra “define(anythingelse)” nor modify database URLs.


    Reply To: https and css

Share This Page

Monarch Social Sharing Plugin