Buddy Press & HTTPS

Hi Guys,

If we use the site as https then the style sheet does not load. If we set siteurl and homeurl to be https then the home page loads fine with green padlock but the members area links get stuck in a loop.

Help! Site just gone live and only just found this issue.

  • cannycookie
    • WPMU DEV Initiate

    Hey lightening fast wpmudev dudes.

    Found the answer myself

    This needs adding to the wp-config file:-

    define('FORCE_SSL_ADMIN', true);
    define('FORCE_SSL_LOGIN', true);
    if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')

    Making sure it is BEFORE:-

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.