Security  

Load cannot follow more than 20 redirections - How to Fix

The error message "load cannot follow more than 20 redirections" typically indicates that a web request, such as an HTTP request to load a webpage, is being endlessly redirected. This could be due to a misconfiguration on the server or in the client’s request.

Here’s how you can troubleshoot and possibly fix this error.

Security

  • Check URL Configuration-
    • Make sure that the URL you are trying to access is correctly typed and formatted.
    • Check if the URL is supposed to redirect and whether it's doing so correctly.
  • Inspect Server Configuration-
    • If you have control over the server, inspect the redirection rules. There might be a loop or incorrect rules causing the endless redirects.
    • Check .htaccess files (Apache) or configuration files (Nginx) for redirection rules.
  • Use Developer Tools-
    • You can use browser developer tools to see the network activity and identify where the redirection loop is occurring.
    • Look for the ‘Network’ tab in the developer tools to monitor the redirections.
  • Clear Browser Cache and Cookies-
    • Cached data might cause the browser to follow old redirection rules. Clearing the browser cache and cookies might help resolve the issue.
  • Disable Browser Extensions-
    • Sometimes, browser extensions can interfere with web requests. Try disabling them to see if it resolves the issue.
  • Inspect Website’s SSL Configuration-
    • Check whether the SSL certificate of the website is correctly configured. Misconfiguration might lead to redirection issues.
  • Review DNS Settings-
    • Check the DNS configuration to ensure that it's correctly pointing to the server where the website is hosted.
    • DNS misconfiguration might lead to redirection to the wrong server, causing loops.
  • Review Code and Scripts-
    • Inspect the code of the webpage or application, especially if there are scripts that might be causing redirections.
    • Look for meta-refresh tags or JavaScript that could be causing additional redirections.
  • Change HTTP Library Settings-
    • If this error is encountered in a script or a program making HTTP requests, you might want to increase the maximum redirection limit. However, be cautious, as it might not resolve the root cause of the issue.
  • Contact Hosting Support-
    • If the issue persists, and you’re not able to identify the problem, it might be beneficial to contact the hosting provider or server administrator for assistance.