#### Add the following part of code to the file: ####:
} elseif ($_SERVER['SERVER_PORT']=='443') {
define('HTTPS', true);
####:below this one:
####:} elseif (isset($_SERVER['HTTP_X_FORWARDED_SERVER']) && ($_SERVER['HTTP_X_FORWARDED_SERVER']=='secure')) {
define('HTTPS', true);
#### Save the file.
#### Try to enable the secure connection options.