# How to Find and Fix a Website Redirect Loop

https://ferkesh.net/zh/knowledgebase/article/diagnose-redirect-loop

![Diagram linking Requested URL, Location response, Competing rule and Final destination.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-03.svg#diagnose-redirect-loop)

A redirect loop occurs when two or more responses keep sending the browser back to an earlier address. The browser usually stops with a message such as too many redirects. Common patterns alternate between HTTP and HTTPS, www and the root name, or a sign-in page and the page behind it.

## Trace the chain

Use your browser’s Network panel and preserve the log during navigation. Start at the exact failing URL and record the response codes and Location values in order. Try a new browser session to separate current server rules from cached redirects or cookies. Check whether a public page and an authenticated area behave the same way.

## Find the settings that disagree

Compare the intended canonical address across the proxy or CDN, the web server and the application. In a reverse proxy setup, the origin needs trusted information about the client’s HTTPS scheme. Misaligned schemes or domain preferences can cause one layer to undo the other’s redirect. Review your provider’s proxy documentation and avoid trusting arbitrary client-supplied forwarding headers.

## Recheck the final destination

Change only the rule that disagrees with the intended flow, and retain its previous setting. Verify the root hostname, www if used and an important subpage. The intended route should end at the correct page after a short chain. Confirm authenticated areas still require appropriate access. Clear only caches involved in the change and check new and existing sessions.

## Related guides

- [How to Diagnose an HTTPS Certificate Warning](https://ferkesh.net/knowledgebase/article/https-certificate-warning)
- [Fix WordPress 404 Errors After a Permalink Change](https://ferkesh.net/knowledgebase/article/wordpress-permalink-404)
- [How to Troubleshoot 502, 503 and 504 Website Errors](https://ferkesh.net/knowledgebase/article/gateway-errors-502-503-504)
- [Website Troubleshooting category](https://ferkesh.net/knowledgebase/category/website-troubleshooting)

## Official references

- [MDN HTTP redirection guidance](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Redirections)
- [MDN HTTP response status reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status)

Ferkesh Hosting. Last reviewed November 26, 2026.
