-
Terminate SSL onto the CLB
-
Change the main site URL to use HTTPS in the Wordpress configuration
-
Add "SetEnvIf x-forwarded-proto https HTTPS=on" in the vhost configuration
-
add these in wp-config: [OPTIONAL]
phpdefine('FORCE_SSL_ADMIN', false); define('FORCE_SSL_LOGIN', false); if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS']='on';
-
a good test to make sure PHP is receiving HTTPS are these lines in a test.php file. If should return "on" if PHP is getting HTTPS properly, or if it returns no value, PHP is not aware it's being called over HTTPS.
php
<?php printf($_SERVER['HTTPS']) ?>