/**
* Handle SSL reverse proxy
* Add this
*/
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
$_SERVER['HTTPS']='on';
if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
}
// If the URI on the proxy is different than the URI on the backend,
// add this to wp-config.php too where “/blog” is the URI prefix on the proxy
$_SERVER['REQUEST_URI'] = "/blog".$_SERVER['REQUEST_URI'];