Force HTTPS Request Website Using Cloudflare Page Rules

Updated at: 2019-10-07 Views: 102 Words: 109 Category: CDN

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

http://www.notefeel.com/*

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

Leave a Comment

All Categories

Life other
Geek Blog MySQL CDN PHP
Earth China