Too many Redirects after switching WordPress to https
snippet in htaccess

Too many Redirects after switching WordPress to https

user5451

define('WP_HOME','https://mywebsite.com');
define('WP_SITEURL','https://mywebsite.com');
$_SERVER['HTTPS'] = 'on';