WordPress HTTPS redirected you too many times. HTTP working fine


We need to updated below code in wp-config.php

/** SSL */  
define('FORCE_SSL_ADMIN', true);  
// in some setups HTTP_X_FORWARDED_PROTO might contain  
// so check for https existence  
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)  
    $_SERVER['HTTPS']='on';

Update siteurl & home with https in database.
Advertisement

3 thoughts on “WordPress HTTPS redirected you too many times. HTTP working fine

  1. I do accept as true with all of the ideas you’ve offered in your post. They are very convincing and can certainly work. Nonetheless, the posts are very quick for newbies. May just you please extend them a little from next time? Thank you for the post.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s