How to fix the WordPress too many redirects error

This article describes different ways to resolve the too many redirects error in WordPress.

What does this error mean?

When too many redirects appears, the browser receives so many consecutive redirects that it cannot load the site. It is usually caused by plugins, themes, misconfigured URLs, or incorrect rules in the .htaccess file that generate a redirection loop.

Before you begin

  • Access your Web Hosting control panel (cPanel, Plesk, or equivalent) or via FTP.
  • Take a backup of the site and the database before modifying any files.

Solution 1 — Verify URLs in WordPress

If you can log in to the administrator area:

  1. Log in as an administrator at /wp-admin.
  2. Go to Settings → General.
  3. Check that WordPress Address (URL) and Site Address (URL) are correct.
  4. If WordPress is in a subfolder, the URL must include it (example: https://yourdomain.com/wordpress).
  5. Use the same protocol for both (http or https, do not mix them).
  6. Click Save Changes.

Solution 2 — Correct URLs in wp-config.php

If you cannot access the admin area, edit wp-config.php from the panel file manager or via FTP. Add these lines before /* That's all, stop editing! */:

define('WP_HOME','https://yourdomain.com');
define('WP_SITEURL','https://yourdomain.com');

Replace https://yourdomain.com with the actual URL of your installation. Save the file and test the site.

Solution 3 — Browser cookies and cache

Sometimes the issue is local. Clear browser cookies and cache and test in an incognito window or using Ctrl + F5.

If the error persists, you can add the following to wp-config.php:

define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');

Solution 4 — Disable plugins

A corrupt or outdated plugin can cause the loop. To deactivate all of them:

  1. Log in to the panel file manager (site root folder).
  2. Go to wp-content/plugins.
  3. Rename the plugins folder to plugins.bak.
  4. Try accessing the site. If it works, the issue is caused by a plugin.
  5. Rename the folder back to plugins and rename the subfolders one by one to identify which one is failing (test the site after each change).

Solution 5 — Check the .htaccess file

Incorrect rules in .htaccess also generate loops. To test:

  1. Rename .htaccess to .htaccess.bak.
  2. Test the site. If it works, the issue was in that file.
  3. Create a new .htaccess with the standard WordPress structure:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Save the file and reload the site with Ctrl + F5.

Tip: If you migrated from HTTP to HTTPS, verify that there are no SSL plugins forcing duplicate redirections together with rules in .htaccess or in the panel.

Need help?

If none of the options resolved the error, contact technical support from the client portal or the online site chat, indicating which steps you have already tried.

  • too many redirect, muchas redirecciones, too many redirect worpress, editar wp-config
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

I purchased the service but my domain does not work

This article explains the most frequent causes why a domain does not work and how to check them....

Out of space, how to fix it

This article explains what to do if you run out of space on your contracted Web Hosting service....

Bandwidth limit exceeded, my website is not working

This article explains what the Bandwidth limit exceeded message means and what options you have...

Traceroute and obtaining IP address

This article explains how to perform a traceroute (tracert) and how to obtain the public IP of...

Common issues related to FTP connections

This article describes solutions to frequent problems in FTP connections. The examples use the...