Redirect Loops

Problem

A redirect loop occurs when a website tells your browser to redirect to a page, which in turn tells your browser to redirect to another page, this happens over and over again until your browser stops redirecting and declares that a redirect loop has occurred. This varies from browser to browser, but is generally around 21 redirects.

If this is occurring while attempting to log in, see Login Redirect Loops.

Cause

This issue is usually due to misconfiguration of your website or server.

Troubleshooting

To troubleshoot this issue, check your WHMCS configuration and your server’s mod_rewrite rules.

Check Your WHMCS Configuration

Make certain that the WHMCS System URL setting is correct in the General tab at Configuration () > System Settings > General Settings.

For more information, see Update the System URL.

Check Your mod_rewrite Rules

To check whether your mod_rewrite rules are the cause:

  1. Reset the .htaccess file contents in your WHMCS directory.
    For more information, see 404 Page Not Found Errors.
  2. Navigate up the directory tree from the WHMCS directory and temporarily remove any other .htaccess files.

If the issue persists, continue to the next section.

CloudFlare® SSL

If your website uses a CloudFlare SSL certificate, certain settings can cause redirect loops in WHMCS.

To resolve this issue:

  1. Log in to your CloudFlare account.
  2. Click the Crypto heading.
  3. Change the SSL setting to Full or Full (Strict).

Last modified: November 19, 2024