Resolving the Too Many Redirects Error in VergeCloud

Resolving the Too Many Redirects Error in VergeCloud

What is Too Many Redirects Error

The "Too Many Redirects" error occurs when a browser repeatedly attempts to load your website but is caught in a redirection loop, unable to determine the correct destination. After 16 attempts, the browser displays this error, indicating that it cannot proceed further.

Why This Error Happens

This error typically occurs when there is a misconfiguration in your website's redirection settings, leading to conflicting or continuous redirects between URLs. For example, the browser may be redirected between "www" and non-"www" versions of the site without resolution.

Scenarios That Cause the Error and Soultions

1. HTTPS Settings

Issues with HTTPS configuration can result in redirection loops. Consider the following scenarios when setting up HTTPS on VergeCloud:

  1. Your web server only responds to HTTP requests: Disable the Secure connection of HTTPS with Origin Server setting. VergeCloud will then communicate with your server over HTTP (port 80).
  2. Your web server only responds to HTTPS requests: Enable the Secure connection of HTTPS with Origin Server setting, so VergeCloud communicates with your server over HTTPS (port 443).
  3. Your web server responds to both HTTP and HTTPS requests: Set the Secure connection of HTTPS with Origin Server to Automatic Mode. This ensures:
    • If a user sends a request over HTTP, VergeCloud forwards the request to your server in HTTP.
    • If a user sends a request over HTTPS, VergeCloud forwards the request to your server in HTTPS.

2. Transfer Domain to www Setting

When the Transfer domain to www setting is enabled in your CDN configuration, and your web server is configured to serve the website without "www," this mismatch can result in redirections between "www" and non-"www" versions of the site, creating a loop.

How to Prevent the Error

  • Review your HTTPS settings in the VergeCloud dashboard and ensure they align with your web server’s protocol settings.
  • Verify the "Transfer domain to www" setting and ensure it matches your web server’s configuration to avoid conflicting redirections.
  • Test your website after making changes to confirm that no redirection loops occur.

Considerations

  • Always test HTTPS configuration changes to avoid unintended redirection loops.
  • When using the "Transfer domain to www" setting, ensure consistency between VergeCloud’s configuration and your web server’s response.
  • If enabling HTTPS for the first time, verify your origin server settings and confirm compatibility with VergeCloud’s CDN.

    • Related Articles

    • Resolving iOS Inaccessibility Issues with VergeCloud CDN

      Ignore "upgrade" Header If your website becomes inaccessible to iOS users (e.g., on iPhones or iPads) after integrating VergeCloud CDN, you can resolve the issue by adjusting the Page Rules in your VergeCloud User Panel. Follow the steps below: ...
    • What Is an HTTP 406 error? A complete guide to causes and fixes

      An HTTP 406 error, also known as 406 Not Acceptable, means the server understands the request but cannot return a response in any format the client is willing to accept. This usually happens when the browser or API request is too specific about ...
    • Troubleshooting ERR_SPDY_PROTOCOL_ERROR in Chrome

      What is ERR_SPDY_PROTOCOL_ERROR? The ERR_SPDY_PROTOCOL_ERROR occurs in Chrome when there is an issue with the SPDY or HTTP/2 protocol. This error can appear while trying to load a website, even for well-known domains. It typically stems from browser ...
    • HTTP error 431: Causes, solutions, and prevention tips

      HTTP error 431, shown as Request Header Fields Too Large, happens when your browser sends too much information in the request headers for the server to handle. This usually means cookies, authentication tokens, or other header data have grown larger ...
    • Troubleshooting SSL Errors on VergeCloud CDN.

      Troubleshooting SSL Errors on VergeCloud If users encounter SSL errors while visiting your website and you are utilizing VergeCloud’s content delivery network (CDN), the issue may stem from several potential causes. This guide outlines common factors ...