Check out example codes for "ERR_TOO_MANY_REDIRECTS wordpress". It will help you in understanding the concepts better.

Code Example 1

# update wp-config file
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

#also add
define('FORCE_SSL_ADMIN', true);
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
    $_SERVER['HTTPS']='on';

Learn ReactJs, React Native from akashmittal.com