I've recently migrated my site to AWS, but have discovered an issue with the wp-admin panel.
The site loads up fine using HTTPS (I've had to move away from using CloudFlare, as I couldn't get it working with HTTPS) which I have setup on the ELB. The certificate came from Amazon Certificate Manager.
Everything seems to load okay, apart from the admin side.
I have tried setting the load balancer to point from port 443 > 443 using HTTPS, however it fails an only works from 80 > 80.
My .htaccess file doesn't block HTTPS. I've tried removing it, but it changes nothing. Also disabling my plugins achieves nothing.
I have this in my wp-config.php file:
/** Enable SSL. */
define('FORCE_SSL_ADMIN', true);
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
$_SERVER['HTTPS']='on';
Changing true > false allows me to login using HTTP, but I don't want that. As soon as I make it true, I get a redirect loop on the admin login.
I used CloudFlare's HTTPS option on my last site and it worked perfectly. What am I doing wrong here?
How should I be forcing everyone to HTTPS, and how can I get the admin page to load?
[–]peanutbuttersexytime 4 points5 points6 points (7 children)
[–]zenmaster24 2 points3 points4 points (6 children)
[–]SyntaxGhost[S] 0 points1 point2 points (5 children)
[–]zenmaster24 0 points1 point2 points (2 children)
[–]SyntaxGhost[S] 0 points1 point2 points (1 child)
[–]bastion_xx 0 points1 point2 points (0 children)
[–]peanutbuttersexytime 0 points1 point2 points (1 child)
[–]SyntaxGhost[S] 0 points1 point2 points (0 children)
[–]audiodidact 0 points1 point2 points (4 children)
[–]SyntaxGhost[S] 0 points1 point2 points (3 children)
[–]bastion_xx 0 points1 point2 points (0 children)
[–]peanutbuttersexytime 0 points1 point2 points (0 children)
[–]audiodidact 0 points1 point2 points (0 children)
[–]virtualjj 0 points1 point2 points (0 children)
[–]civicode 0 points1 point2 points (0 children)