If you use Cloudflare flexible SSL certificate to use HTTPS, in some case you may get redirect loop.
I believe it is caused because WordPress does not recognize the “fake” SSL certificate.
Fixing it is simple.
Open your wp-config.php
file, and find this first line
<?php