VibeDict

🌐Redirects loop forever (too many redirects)

What you'll see
This page isn't working. redirected you too many times. ERR_TOO_MANY_REDIRECTS

A page sends you to another address, and that address sends you back to the first one, over and over without end.

🤔 Why does it happen?

  • Not logged in → sent to the login page, but the login page also needs login → sent again… so the pages keep sending you to each other
  • The www address and the plain address point to each other
  • Forced https redirects are set up in two places (hosting and DNS)

🔧 Try this

  1. Clear your browser's cookies and visit again
  2. Check that the login page is left out (an exception) in your middleware or redirect settings
  3. In your domain settings, check that the www ↔ plain address redirect goes only one way

🤖 Ask your AI like this

I get ERR_TOO_MANY_REDIRECTS when I visit my site. Please find where the redirect loops (middleware, login check, or domain/www settings) and fix it.

Replace the [ ] parts with your own situation, and paste the error with a few extra lines before and after it.

Related terms

Other errors in this group