WordPress HTTPS Too Many Redirects Problem

Add this lines to your wp-config.php file


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

define('WP_HOME','https://gokhancelebi.net');
define('WP_SITEURL','https://gokhancelebi.net');

When you go to wp login page, if you redirect too many times that means your SSL settings are wrong. Sometimes that is becaouse of Cloudflare or your hosting provider.

Leave a Reply

Your email address will not be published. Required fields are marked *