We have recently applied SSL certificate on our website and we want all our url to have https:// protocol.
Once we moved our website to https://, our website broke down
view notes of link https://codex.wordpress.org/Function_Reference/is_ssl
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS'] = 'on';