Real people, 24/7(800) 395-7779

Choosing the Right Cloudflare SSL/TLS Mode (and Fixing "Too Many Redirects") Print

  • 0

Cloudflare's SSL/TLS encryption mode controls how Cloudflare connects to our server. Choosing the wrong mode is the most common cause of "ERR_TOO_MANY_REDIRECTS", 525/526 errors, and insecure connections.

Short answer: use Full (strict). Your site on our server already has a valid SSL certificate (AutoSSL on cPanel, Let's Encrypt on Plesk), so Cloudflare can connect to it securely and verify it.

The Modes Explained:

  • Full (strict) - recommended: Visitor to Cloudflare and Cloudflare to our server are both encrypted, and Cloudflare checks that our server's certificate is valid.
  • Full - not recommended: Encrypted to our server, but Cloudflare accepts any certificate, even an expired or wrong one, so problems go unnoticed.
  • Flexible - do not use: Cloudflare connects to our server over plain HTTP. Our servers, WordPress, and most applications then redirect that HTTP request back to HTTPS, Cloudflare requests HTTP again, and the browser ends up in an endless loop ("ERR_TOO_MANY_REDIRECTS" / "redirected you too many times"). Traffic between Cloudflare and our server is also unencrypted.
  • Off: No HTTPS at all. Not suitable for any site.

How to Set Full (strict):

  1. Check the certificate on our server first:

    • cPanel: Security > SSL/TLS Status should show a valid certificate for yourdomain.com and www.yourdomain.com (see AutoSSL in cPanel).
    • Plesk: the domain should have a Let's Encrypt (or other valid) certificate assigned (see How to Enable Let's Encrypt).
  2. Change the mode in Cloudflare:

    • Go to Websites > your domain > SSL/TLS > Overview, choose Full (strict), and save. If Cloudflare offers an automatic mode, make sure the result is Full (strict).
  3. Test:

    • Open your site in a private browser window. It should load over https:// with a padlock.

Fixing "Too Many Redirects":

  • Set the SSL/TLS mode to Full (strict) as above. This fixes the loop in most cases.
  • Use one HTTPS redirect, not several. Cloudflare's Always Use HTTPS (SSL/TLS > Edge Certificates), cPanel's Force HTTPS Redirect (see How to Force HTTPS in cPanel), and .htaccess or web.config rules all work with Full (strict), but check for conflicting www/non-www rules (for example, Cloudflare redirecting to www while your site redirects to non-www).
  • WordPress: make sure Settings > General uses https:// for both addresses, and that only one plugin forces HTTPS.
  • Clear your browser cache afterwards; browsers remember redirects. Then purge Cloudflare's cache (see Purging Cloudflare Cache and Using Development Mode).

Advanced: Cloudflare Origin CA Certificates

Cloudflare can issue a free "Origin CA" certificate that is only trusted by Cloudflare. You can install it on our server (cPanel: Security > SSL/TLS > Manage SSL sites; Plesk: the domain's SSL/TLS Certificates, see How to Install an SSL/TLS Certificate with Plesk). This is optional: once it is installed, AutoSSL no longer manages that domain, and anyone reaching the site without Cloudflare (or after you pause Cloudflare) sees a certificate warning. For most customers, the free AutoSSL / Let's Encrypt certificate with Full (strict) is simpler.

Seeing 525 or 526 Errors?

These mean Cloudflare could not establish or verify SSL with our server, usually because the certificate on our server has expired (often because renewal was blocked by Cloudflare). See Keeping AutoSSL and Let's Encrypt Working Behind Cloudflare and Troubleshooting Cloudflare 520-526 Errors.

Please note: PeoplesHost is not Cloudflare and does not manage Cloudflare accounts, but we are glad to check the SSL certificate and redirects on our side.

Need help? Open a ticket at https://my.peopleshost.com/submitticket.php and our support team will be glad to assist.


Was this answer helpful?

« Back