If you enable SSL for the site (so as to allow "https://..."), add the following line in wp-config.php (before "require_once(ABSPATH . 'wp-settings.php');" : if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';