The “Too Many Redirects” error usually means that your website has entered into a redirect loop. In simple terms, the browser is being told to go from one URL to another, but the second URL sends it back to the first URL again. This process continues repeatedly until the browser stops and displays the error.
There are several common causes of this problem.
One of the most common causes is an incorrect HTTP-to-HTTPS configuration. For example, your server may be configured to redirect HTTP to HTTPS, while another configuration is trying to redirect HTTPS back to HTTP.
Cloudflare SSL settings can also cause redirect loops. If Cloudflare is being used, the SSL/TLS mode should be checked carefully. For example, if Cloudflare is set to “Flexible” while the origin server is configured to force HTTPS, conflicting redirects can occur.
If the website is running WordPress, the WordPress Address (URL) and Site Address (URL) should also be checked. Both should normally use the correct protocol and domain.
The .htaccess file is another important place to check. Multiple rewrite or redirect rules can accidentally create a loop. This can happen after installing SSL, changing a domain, migrating a website, or installing a WordPress plugin.
A practical troubleshooting process would be:
- Check whether the problem occurs with both HTTP and HTTPS.
- Check the website's WordPress URL settings if WordPress is being used.
- Review the
.htaccess file for duplicate or conflicting redirect rules.
- Check Cloudflare SSL/TLS settings if Cloudflare is enabled.
- Temporarily disable recently installed redirect or security plugins.
- Clear browser and CDN cache after making changes.
- Test the website again using a private/incognito browser window.
It is also important not to add multiple HTTPS redirect rules in different places without understanding how they interact. Ideally, the redirect should be managed consistently at the appropriate layer, such as the web server, application, or CDN.