Enable Always Use HTTPS in Cloudflare
Always Use HTTPS is a Cloudflare setting that redirects every plain HTTP request to the HTTPS version of the same URL, at Cloudflare's edge, before the request reaches your server. It is the quickest way to stop visitors from landing on the insecure version of your site. It does not issue a certificate and it does not fix a broken origin, so the order of operations matters.
Before you turn it on
Check three things first. Your domain must be proxied through Cloudflare (orange cloud) for the records you care about. The SSL/TLS encryption mode must match what your origin can actually do. And your pages should not load scripts, images or fonts over http://, or visitors will see mixed content warnings after the redirect.
| SSL/TLS mode | Visitor to Cloudflare | Cloudflare to origin | Safe with Always Use HTTPS? |
|---|---|---|---|
| Off | HTTP only | HTTP | No, it defeats the purpose |
| Flexible | HTTPS | HTTP | Only if the origin has no redirect of its own |
| Full | HTTPS | HTTPS, certificate not checked | Yes |
| Full (strict) | HTTPS | HTTPS, valid certificate required | Yes, recommended |
Always Use HTTPS in Cloudflare: the dashboard steps
- Log in to Cloudflare and select your domain.
- Open SSL/TLS, then Edge Certificates.
- Find Always Use HTTPS and switch it on.
- Open SSL/TLS, then Overview, and set the mode to Full or Full (strict) if your origin has a certificate.
- Purge the cache from Caching if you still see old HTTP responses.
If your origin has no certificate yet, install one first. You can issue a free one with TryFreeSSL or use a Cloudflare Origin CA certificate, then move to Full (strict).
Always Use HTTPS in Cloudflare: avoid the loop
The classic failure is ERR_TOO_MANY_REDIRECTS. It happens when Cloudflare is in Flexible mode, talks to your origin over HTTP, and your origin or CMS redirects HTTP to HTTPS on its own. Cloudflare sends HTTP to the origin, the origin answers with a redirect to HTTPS, Cloudflare sends HTTP again, and the loop never ends.
The fix is to stop using Flexible. Install a certificate on the origin and switch to Full (strict). If you cannot do that yet, remove the HTTP to HTTPS redirect from the origin and let Cloudflare handle it. WordPress sites should also check that the Site URL and Home URL both start with https://.
Always Use HTTPS vs a Redirect Rule
The toggle applies to the whole zone. If you need exceptions, for example an API hostname that must still answer on HTTP for a legacy device, turn the toggle off and create a Redirect Rule (or a Configuration Rule that disables the setting for specific hostnames). Rules let you match on hostname or path. The toggle is simpler and is the right default for most sites.
Once HTTPS works everywhere, consider enabling HSTS from the same Edge Certificates page. Do that only after you are sure every subdomain serves valid HTTPS, because browsers will refuse HTTP for the whole max-age period.
Test that it works
curl -I http://example.com/
# Expect: HTTP/1.1 301 Moved Permanently
# Expect: location: https://example.com/
curl -I https://example.com/
# Expect: HTTP/2 200
Run the same check on www and on a deep URL such as /blog/some-post, since the path should be preserved. Our HTTPS redirect checker shows the full redirect chain, and the Live SSL Checker confirms the certificate your visitors actually receive.
Related reading: Cloudflare SSL with WordPress, Cloudflare SSL errors and enabling HSTS.
Frequently Asked Questions
Does Always Use HTTPS cost anything?
No. It is available on every Cloudflare plan, including the free one.
Is it a 301 or a 302 redirect?
It issues a permanent redirect, so search engines treat the HTTPS URL as the canonical one over time.
Will it fix mixed content warnings?
No. It redirects page requests only. Mixed content comes from hard-coded http:// links inside your pages. Update those or enable Automatic HTTPS Rewrites as a stopgap.
Can I use it with a certificate from another provider?
Yes. The setting only controls the redirect. The origin certificate can come from any trusted source or from Cloudflare Origin CA.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.