Redirection loop on activating https on cloudflare enabled wordpress site

I’ve a WordPress site (with latest version). The site was running properly until I’ve activated force https from cloudflare! Cloudflare now a days provides free ssl and google also likes SSL enabled sites. That’s why I’ve activated SSL from cloudflare and added page rule in cloudflare to force https.

I’ve also changed site’s base url and home page url with https, but it still having redirection loop.

Read More

I don’t have any idea if I’m supposed to post my personal site’s URLs here or not. If required I will post the URL.

Can anyone help please.

Related posts

Leave a Reply

1 comment

  1. Finally adding the lines below to the wp-config.php resolved my issue.

    if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
        $_SERVER['HTTPS']='on';
    }