Support » Fixing WordPress » My site thinks it's secure when it is fact not.

  • Resolved adampatterson



    My site is loading enqueued content over HTTPS while it is not a secure site.

    I have a couple PHP sites behind a load balancer with a proxy ssl certificate on another domain. This site does not have the certificate.

    when I output is_secuire I get true, when I output $_SERVER[‘HTTPS’] I get on.

    Here is a copy of my $_SERVER dump.

    No other sites are having this issue.

    I attempted to use force_ssl_content(false) in my functions.php but didn’t have any luck. in fact it just broke the site. Didn’t see any examples of how to avoid setting SSL, only how to Force SSL.

    Any help would be muchly appreciated!

Viewing 1 replies (of 1 total)
  • wp_config was set up to force SSL by overwriting $_SERVER[‘HTTPS’], Respolved the issue.

    I assume someone was trying to make SSL work behind the proxy at one point.

    It would actually be a much better solution ( specifically for asset links ) to use the double slash //

Viewing 1 replies (of 1 total)
  • The topic ‘My site thinks it's secure when it is fact not.’ is closed to new replies.