You can use following code for Check URL is Secure or Not in amazon EC2 Server
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
$_SERVER['HTTPS'] = 'on';
} else {
$_SERVER['HTTPS'] = 'off';
}
No comments:
Post a Comment