( Sloved ) Cloudflare Too Many Redirects Error

If you use Cloudflare as your reverse proxy service, you might have encountered the “Too Many Redirects” error that prevents website visitors from viewing your website. In this article, we will provide a comprehensive guide on how to fix this error.

The “Too Many Redirects” error is a common issue faced by website owners and administrators who use Cloudflare. This error occurs when visitors get stuck in a redirect loop, preventing them from accessing the website. The error can be caused by Cloudflare SSL options that are incompatible with the origin web server’s configuration or page rule misconfiguration. It’s essential to fix this error promptly to ensure website visitors can access your website.

Causes of the Error

There are two typical causes of the “Too Many Redirects” error:

  • Cloudflare SSL options that are incompatible with the origin web server’s configuration
  • Page rule misconfiguration

Cloudflare SSL Options Incompatible with Origin Web Server

When using the Flexible SSL option, Cloudflare sends requests to the origin web server unencrypted over HTTP. If the origin web server is configured to redirect all HTTP requests to HTTPS when using the Flexible SSL option, redirect loops occur. Another scenario is the usage of the Full or Full(strict) SSL option, which can also lead to the error.

Page Rule Misconfiguration

If you configure two conflicting Page Rules with Forwarding URL settings, it causes redirect loops. For example, a Page Rule redirects traffic for a.bob.com to b.bob.com, and another redirects traffic for b.bob.com to a.bob.com.

Solutions

Cloudflare SSL Options

If the error is caused by Cloudflare SSL options that are incompatible with the origin web server’s configuration, you can follow one of these steps to fix it:

  1. Remove HTTPS to HTTP or HTTP to HTTPS redirects from the origin web server configuration.
  2. Update the Cloudflare SSL option in the SSL/TLS app Overview tab:
    • If it is set to Flexible, and you have an SSL certificate at the origin web server, update it to Full.
    • If it is set to Full, update it to Flexible (although not recommended).

Page Rule Misconfiguration

If the error is caused by page rule misconfiguration, follow these steps to fix it:

  1. Check the rules in Rules > Page Rules to confirm if there are two rules to forward traffic to each other.
  2. Install the Cloudflare WordPress plugin or SSL insecure content fixer or Really Simple SSL plugin at the origin web server to reduce this.
  3. Enable the Automatic HTTPS rewrites option within the plugin.

Other Cloudflare Issues

Apart from the “Too Many Redirects” error, other Cloudflare issues can occur. For instance, the Unable to Verify DNS and Unable to Renew Your HTTPS Certificate errors. You can fix these issues by following the recommended steps.

Conclusion

In conclusion, the “Too Many Redirects” error is a common issue faced by website owners and administrators who use Cloudflare. The error can be caused by Cloudflare SSL options that are incompatible with the origin web server’s configuration or page rule misconfiguration. It’s essential to fix this error promptly to ensure website visitors can access your website. By following the steps outlined in this article, you can fix this error and prevent similar errors in the future.

Share this post if you like it.
Worda Team
Worda Team

Our team of WordPress professionals will help you stay on the latest WP topics, resolve any problem or issue with the WordPress website or provide useful advice. Feel free to get in touch with us. :)

Leave a Reply

Your email address will not be published. Required fields are marked *