A redirect loop occurs when rules repeatedly send a visitor between URLs. Map the actual response chain before changing the primary domain, HTTPS behavior or application configuration.
On this page
Record the redirect chain
- Test the apex and www hostnames over both HTTP and HTTPS.
- Record each response status and destination location.
- Identify the layer issuing each redirect: platform, application, proxy or registrar forwarding.
- Agree on the intended primary hostname and secure URL.
Remove conflicting ownership
Loops often appear when one layer enforces www and another removes it, or when a proxy and origin disagree about the request scheme. Use one coherent rule set and platform-supported configuration.
For example, registrar forwarding can send visitors to www while the application sends them back to the apex. Correcting only the application leaves the conflicting forwarding rule active.
Test paths and query strings
A successful homepage redirect is insufficient. Test a product or content path, campaign parameters and any language or market URLs. Preserve the destination path when that matches the migration plan.
On Shopify, manage the primary-domain behavior through its supported domain settings and use the supported DNS connection. For a separately hosted site behind Cloudflare, review proxy and origin TLS configuration with the hosting team rather than disabling HTTPS as a shortcut.
Why does one browser still loop after a fix?
Previously cached redirects or cookies can affect a session. Compare a fresh session and the current network response chain before assuming the live rules are still wrong.
References
Put this into practice.
Minion can help with website redirect diagnosis and domain migration support. Discuss the right ongoing support plan for your store or website.