When an installation is migrated to a server (i.e. staging, test), files might be requested by WordPress over HTTP, and fail to load because of this. To fix this, the following code needs to be added at the top of the wp-config.php file in the _scripts/build/[PROJECTNAME].[PREFIX].dpdk.com
folder:
$_SERVER['HTTPS'] = 'on';
$_SERVER['SERVER_PORT'] = 443;
if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
}
define('FORCE_SSL_ADMIN', true);
define('FORCE_SSL_LOGIN', true);
Last modified | Friday, January 29, 2021, 8:41:53 AM UTC |
Last author | Glenn de Haan |
Commit ID | 8c81eec |