TAG: WordPress

Ramblings from my life - especially web development with Laravel, WordPress and PHP.

Navigation

WordPress With Load Balancer SSL Termination

If attempt to run WordPress in a load balanced environment with SSL terminated on the load balancer(s), you may find requests to your site get stuck in a redirect loop. This is due to WordPress not trusting forwarded SSL by default. To solve this issue, you simply need to add the following snippet to your wp-config.php file: if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') { $_SERVER['HTTPS']='on'; } To be slightly more secure, you might…