Force SSL on admin area for wordpress causes redirect loop.
Author: admin admin Reference Number: AA-00411 Views: 23171 Created: 2014-10-13 11:16 Last Updated: 2014-10-13 11:16 0 Rating/ Voters

If you add

define('FORCE_SSL_ADMIN', true);

To your wp-config.php  file when using free hosting, it is no longer possible to login to wordpress due to a redirect loop.

To fix this, in your wp-config.php file at the very bottom add the following :

if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')

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

Quick Jump Menu