Website shows "too many redirects" (ERR_TOO_MANY_REDIRECTS)
On this page
Symptoms
- The browser shows "This page isn't working — example.com redirected you too many times" or
ERR_TOO_MANY_REDIRECTS. - It often starts right after the site got its certificate or was put behind Cloudflare.
Causes
- Cloudflare SSL mode "Flexible". Cloudflare asks this server over HTTP; this server sends every HTTP request to HTTPS (it does that for every website with a certificate); Cloudflare asks over HTTP again, and so on.
- A redirect in the panel that points back. For example a redirect from
example.comtowww.example.comwhile the application sendswwwback toexample.com. - The application's own address setting. WordPress or another application has its address set to
http://or to another name, and redirects to it. - A rule in
.htaccessthat forces HTTPS orwwwin a way that conflicts with the above.
Fix
1. Use Full (strict) at Cloudflare. In the control panel, open Cloudflare (section Domains), click Manage next to the domain, then SSL: Full (strict). Make sure SSL/TLS shows Secured for the domain first. See SSL with Cloudflare.
2. Remove the conflicting redirect. Open Redirects (section Domains) and click Remove next to redirects of that website, then test again. You do not need a redirect from HTTP to HTTPS: it is automatic.
3. Correct the application's address. In WordPress, set WordPress Address (URL) and Site Address (URL) (under Settings → General) to https://example.com (with your real domain and the same www or no-www that you use everywhere).
4. Check .htaccess. Open the file in the website's folder with File Manager and temporarily remove rules that redirect to https:// or www, then test.
Still not working?
- Clear your browser's cookies and cache for the site, or test in a private window: browsers remember redirects.
- Open Site Check (section Advanced), choose the domain and click Check: it shows what the website answers.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- SSL certificates for websites behind Cloudflare
How free SSL certificates are issued and renewed when your website uses Cloudflare's proxy, which SSL mode to choose, and the order to switch it on.
- How to force HTTPS (redirect HTTP to HTTPS) and enable HSTS
Websites with a certificate redirect HTTP to HTTPS automatically. Learn when it starts, what is excluded, and how to turn on HSTS so browsers always use HTTPS.
- How to redirect a domain or page (301 or 302 redirect)
Send visitors of a page or a whole website to another address with a permanent (301) or temporary (302) redirect, optionally keeping the rest of the path.
- How to purge Cloudflare cache and set SSL mode from the panel
Purge Cloudflare's cache, turn on development mode, set SSL to Full (strict) and Always use HTTPS for your domain directly from the control panel.