diff --git a/blog/watch-tips/wp-config.php b/blog/watch-tips/wp-config.php index c44f78c7..0bb6edec 100755 --- a/blog/watch-tips/wp-config.php +++ b/blog/watch-tips/wp-config.php @@ -78,5 +78,9 @@ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); +/** As recommended by unsecure-fixed */ +if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') + $_SERVER['HTTPS']='on'; + /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');