508 🌐 HTTP

HTTP 508 Loop Detected

The server stopped processing the request because it detected an infinite loop while processing the request.

Meaning

The server stopped processing the request because it detected an infinite loop while processing the request.

Common causes

  • Infinite redirect loop
  • Recursive request processing
  • Incorrect rewrite rules
  • Circular dependency between resources
  • WebDAV request loop

⚡ Quick fix

  1. Check redirect rules
  2. Review rewrite configuration
  3. Remove circular routing
  4. Check recursive application logic

Detailed fix by platform

Apache

  1. Review .htaccess rewrite rules
  2. Check for circular RewriteRule configurations

Nginx

  1. Review rewrite and location directives
  2. Check for circular proxy or redirect rules

PHP

  1. Check recursive function or request logic
  2. Verify redirects do not point back to the same URL

How to diagnose

  1. Check the redirect chain —
  2. Review rewrite rules —
  3. Inspect server logs —
  4. Trace recursive application requests —
  5. Check proxy configuration —

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.