Questions? Feedback? powered by Olark live chat software
Knowledgebase
Author Avatar

NGinx and Wordpress HTTPS Too Many Redirects

Written by: on 25 September 2019 12:17 PM 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';