# Too Many Redirects (HSTS) (SSL / TLS)

Source: https://www.observeone.com/community/errors/ssl/hsts-redirect-loop

[ObserveOne](/)[Features](/#features)[Pricing](/#pricing)[Blog](/blog)[CLI](/cli)[Docs](/docs)

[Sign in](https://app.observeone.com/auth?tab=signin)[Start Free](https://app.observeone.com/auth?tab=signup)

[Error Dictionary](/community/errors)/[SSL / TLS](/community/errors/ssl)/hsts-redirect-loopmedium

# Too Many Redirects (HSTS)

HSTS configuration creating a redirect loop between HTTP and HTTPS.

## Common Causes

- 1Load balancer terminates SSL but backend redirects to HTTPS again
- 2Cloudflare Flexible SSL with server-side redirect

## How to Fix

### Trust proxy headers

if ($http_x_forwarded_proto = 'http') {
 return 301 https://$host$request_uri;
}Only redirect when the original request was HTTP.

## How ObserveOne Helps

A redirect loop makes the site unreachable even though the server is up. An ObserveOne uptime check fails on the loop, so a redirect change that goes wrong pages you the moment it ships.

[Start Monitoring Free](https://app.observeone.com/auth?tab=signup)

## Related Errors

[ERR_SSL_PROTOCOL_ERRORThe browser cannot establish a secure SSL/TLS connection because the server and browser cannot agree on a protocol version or cipher suite.](/community/errors/ssl/err-ssl-protocol-error)[Mixed Content: Insecure resource requestedHTTPS page loading resources over HTTP. Modern browsers block mixed content.](/community/errors/ssl/mixed-content-warning)[ERR_SSL_VERSION_OR_CIPHER_MISMATCHServer and browser cannot agree on SSL/TLS protocol version or cipher suite.](/community/errors/ssl/err-ssl-version-or-cipher-mismatch)[NET::ERR_CERT_AUTHORITY_INVALIDSSL certificate is not signed by a trusted Certificate Authority.](/community/errors/ssl/err-cert-authority-invalid)[NET::ERR_CERT_DATE_INVALIDSSL certificate has expired or is not yet valid.](/community/errors/ssl/err-cert-date-invalid)

ObserveOne

Agentic QA and synthetic monitoring built for engineering teams. Plan, generate, and run suites from the web UI. Connect to CI for reliable coverage across critical journeys.

### Product

- [Features](/#features)
- [Pricing](/#pricing)
- [QA Coverage](/qa-coverage)
- [API Monitoring](/api-monitoring)
- [Free Website Check](/free-website-check)

### Developers

- [CLI](/cli)
- [Docs](/docs)
- [For Agents](/agents)
- [Self-host (oo-workers)](/workers)
- [Status Pages](/status)
- [Netlify Extension](https://app.netlify.com/extensions/mzs1lgc3-observeone)

### Resources

- [Blog](/blog)
- [Bug Book](/bug-book)
- [Guides](/community/guides)
- [Tools](/community/tools)
- [Error Dictionary](/community/errors)

### Compare

- [Tool Comparisons](/compare)
- [Tool Alternatives](/alternatives)
- [Best by Category](/best)
- [Search](/search)

© 2026 ObserveOne. All rights reserved.

[About](/about)[Privacy Policy](/privacy)[Terms of Service](/terms)[Affiliates](/affiliates)[Become an Affiliate](/affiliate-terms)
