This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define('FORCE_SSL_ADMIN', true); | |
// in some setups HTTP_X_FORWARDED_PROTO might contain | |
// a comma-separated list e.g. http,https | |
// so check for https existence | |
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) | |
$_SERVER['HTTPS']='on'; |