Solution for Cloudflare SSL Settings that Raise TOO_MANY_REDIRECTS

utilization Cloudflare When using SSL, websites sometimes get a "TOO_MANY_REDIRECTS" error, which causes the page to bounce around indefinitely and cannot be opened. Users will see the message "Too many page redirects" in their browsers. This article will explain the cause of this error and provide several simple solutions.

Image [1]-Solution for Cloudflare SSL setting that triggers TOO_MANY_REDIRECTS

I. What is the TOO_MANY_REDIRECTS error?

TOO_MANY_REDIRECTS The error usually indicates that the browser was unable to load a page successfully because the site entered an endless redirection loop. Simply put, a page redirects from one URL to another URL, and the process keeps looping, causing the browser to fail to finish loading.

After enabling Cloudflare SSL, this error is usually caused by an incorrect SSL Settings maybe HTTP vs. HTTPS redirection conflicts Cause.

Common Causes of TOO_MANY_REDIRECTS Errors

  • SSL Setting Conflicts
    When you enable SSL on both Cloudflare and your web server, it can cause HTTP and HTTPS requests to redirect each other, creating a dead end.
  • SSL configuration mismatch between Cloudflare and web server
    If your web server is configured with SSL, but Cloudflare's SSL Inconsistent settings (e.g., differences between "Flexible SSL" and "Full-featured SSL" settings) can cause requests to be constantly redirected between HTTP and HTTPS.
  • Cloudflare SSL Conflicts with WordPress Settings
    If you are using the WordPressand not properly configuring the site's URL (including WordPress address vs. site address settings) can cause conflicts between Cloudflare and WordPress settings, triggering redirection issues.

C. How to solve the TOO_MANY_REDIRECTS error?

1. Checking Cloudflare's SSL Settings

In the Cloudflare control panel, the SSL settings are very important in resolving this issue. You need to make sure that you are correctly selecting the appropriate SSL configuration, which usually has the following modes:

Image [2]-Solution for Cloudflare SSL setting that triggers TOO_MANY_REDIRECTS
  • Flexible SSL (SSL): Cloudflare uses HTTPS to communicate with the user's browser, but HTTP to communicate with the source server. This setting is most likely to cause redirection problems and is therefore not recommended.
  • Full SSL (SSL): Cloudflare uses HTTPS to communicate between the browser and the origin server, which also needs to have a valid SSL certificate.
  • Full Strict SSL (SSL): Cloudflare uses HTTPS and requires that the source server also have a valid and trusted SSL certificate that should not expire.

Operational Steps:

  • Log in to the Cloudflare control panel.
Image [3]-Solution for Cloudflare SSL setting that triggers TOO_MANY_REDIRECTS
  • Select your domain name and go to SSL/TLS Setting.
Image [4]-Solution for Cloudflare SSL setting that triggers TOO_MANY_REDIRECTS
  • Ensure selection Full SSL maybe Full Strict SSL. Avoid using Flexible SSL, because it tends to lead to redirection loops.
Image [5]-Solution for Cloudflare SSL setting that triggers TOO_MANY_REDIRECTS

2. removalsbrowser (software)Caching with Cloudflare Cache

Old redirection rules may be stored in the browser cache, causing you to see error pages even though you have fixed the problem. Therefore, clearing your browser cache and Cloudflare cache is a critical step in resolving this issue.

Operational Steps:

  • Clear Browser Cache: Try clearing your cache and cookies in your browser, or visit the site using a no-trace browsing mode.
Image [6]-Solution for Cloudflare SSL setting that triggers TOO_MANY_REDIRECTS
  • Clearing the Cloudflare Cache::
    • Log in to the Cloudflare control panel.
    • exist (computing) cache(Caching) section click clear the cache(Purge Everything).
Image [7]-Solution for Cloudflare SSL setting that triggers TOO_MANY_REDIRECTS

3. Make sure WordPress is configured correctly

If you're in WordPress It's also important to check your WordPress configuration when experiencing this issue on your website, especially the WordPress Address respond in singing site addressThe

Operational Steps:

  • Log in to the WordPress backend and go to Settings → GeneralThe
Image [8]-Solution for Cloudflare SSL setting that triggers TOO_MANY_REDIRECTS
  • assure WordPress Address (URL) respond in singing Site address (URL) in order to https:// start and make sure it is consistent with the Cloudflare settings.
Image [9]-Solution for Cloudflare SSL setting that triggers TOO_MANY_REDIRECTS
  • If you use a plugin (such as Really Simple SSL), make sure the plugin is set up correctly to avoid conflicts.

4. Forced redirection HTTPS

To avoid HTTP to HTTPS redirection loops, ensure that the server forces traffic to be redirected to HTTPS when accessing HTTP sites.

You can edit the server .htaccess file, add the following rule to enforce the use of HTTPS:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

This rule permanently redirects all HTTP requests to HTTPS.

5. Checking the SSL certificate of a website

If you have a problem with your server's SSL certificate, or if the certificate is configured incorrectly, it can also cause redirection errors. You can use an online tool such as SSL Labs(SSL Labs Test) to check if your SSL certificate is valid. If there's a problem, you'll need to contact your hosting provider or certificate authority to fix it.

Image [10]-Solution for Cloudflare SSL setting that triggers TOO_MANY_REDIRECTS

IV. Summary and recommendations

TOO_MANY_REDIRECTS Errors are usually due to Cloudflare SSL settings are caused by a conflict with the web server configuration. By following the steps below, you can effectively resolve this issue:

  • Check and adjust Cloudflare's SSL settings, selecting the appropriate mode (Full SSL or Strict SSL).
  • Clear the browser cache and Cloudflare cache.
  • Make sure the WordPress URL is configured correctly.
  • Forces HTTP requests to be redirected to HTTPS.
  • Ensure that the SSL certificate is valid and properly configured.

With these operations, it is possible to avoid TOO_MANY_REDIRECTS error to ensure that your website's SSL settings are working properly, improving your website's security and user experience.


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
Customer Service
Customer Service
Tel: 020-2206-9892
QQ咨詢(xún):1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
? Reprint statement
Author: linxiulian
THE END
If you like it, support it.
kudos124 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments