Knowledgebase
Knowledgebase
NGinx and Wordpress HTTPS Too Many Redirects
Posted by Will Kruss on 25 September 2019 12:17 PM

If you are serving Wordpress using NGinx (not Apache), and after enabling SSL and correctly update the 'siteurl' and 'home' fields in the database, but still get the error 'Too Many Redirects' this is because Wordpress is checking for an outdated server field to determine if HTTPS is being accessed.

To fix this you need to modify the wp-config.php file and add the line:

$_SERVER['HTTPS']='on';