The ERR_TOO_MANY_REDIRECTS error occurs when your website tries to redirect from one URL to another, but the second URL redirects back to the first one, creating an infinite loop.

This can happen for various reasons, such as incorrect settings in your NGINX config, .htaccess file, wp-config file, or due to a plugin. It can also be caused by third-party services such as Cloudflare which may interfere with the redirection process.

To fix this error, you can try the following solutions:

  • Disable your .htaccess file by renaming it to something else, such as .htaccess_old. This will reset the WordPress rewrite rules, and may solve the problem.
  • Use a default NGINX config, and disable any custom configurations that may be causing the redirection issue. You can also check the NGINX error log for any clues on what is going wrong.
  • Make sure that your wp-config.php file has the correct website settings. You can define the site URL and home URL by adding these lines to the file:
define(‘WP_SITEURL’, ‘https://example.com’);
define(‘WP_HOME’, ‘https://example.com’);

Replace example.com with your actual domain name. You can also modify this setting from the RunCloud dashboard by navigating to “WordPress General Settings” tab in the left menu.

  • If you can access your WordPress dashboard, go to Settings -> Permalinks and set the URL structure to Plain, and then back to your preferred option. This will refresh the permalink structure and may fix the error.
  • Check if there is a plugin conflict that is causing the error. You can disable all the plugins and then enable them one by one until you find the culprit.
  • Delete the cookies in your browser and clear your cache. This will remove any stored data that may be causing the error. You can also try using a different browser or device to see if the error persists.
  • Reset your proxy settings if you are using one. Sometimes, the proxy may interfere with the redirection process and cause the error. You can also try disabling any VPN or firewall that may be blocking the connection.
  • Restart your computer and your router. This will refresh your network settings and may resolve the error.
  • If you are using a third-party service such as Cloudflare, you may need to adjust some settings to prevent the error. For example, you can create a page rule to forward your website URL to a different URL that may fix the redirect issue. You can follow these steps to do that:
    • In the Cloudflare dashboard, open your website settings.
    • Navigate to Rules in the upper left menu and go to Page Rules.
    • Click on Create Page Rule.
    • Select Forwarding URL and enter your website URL and the destination URL.