Home / CDN

Force HTTPS Request Website Using Cloudflare Page Rules

Posted on:2019-10-07 Views:3063 Words:109

This blog site is running behind nginx.

But there is one problem:

Accessing http://www.notefeel.com can not auto redirect to https://www.notefeel.com by nginx configuration.

Same nginx configuration works very well on my Chinese blog website, but fail for this site. It’s always show errors in Chrome, saying “redirect too many times”.

The only difference is that, this site is running behind Cloudflare, but Chinese blog website does not depend on Cloudflare.

So I think this can be resolved by some Cloudflare configuration.

Open Cloudflare, choose the domain, in Page Rules, new a rule ‘Always Use HTTPS’ for link


Then it works. All HTTP requests are 301 redirected to HTTPS.