error redirected you too many times ERR_TOO_MANY_REDIRECTS after changing the WordPress from HTTP to HTTPS
edit wp-config.php
Add this line
define(‘WP_HOME’,’https://mywebsite.com’);
define(‘WP_SITEURL’,’https://mywebsite.com’);
$_SERVER[‘HTTPS’] = ‘on’;