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:
- Log in as an administrator at
/wp-admin. - Go to Settings → General.
- Check that WordPress Address (URL) and Site Address (URL) are correct.
- If WordPress is in a subfolder, the URL must include it (example:
https://yourdomain.com/wordpress). - Use the same protocol for both (http or https, do not mix them).
- 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:
- Log in to the panel file manager (site root folder).
- Go to
wp-content/plugins. - Rename the
pluginsfolder toplugins.bak. - Try accessing the site. If it works, the issue is caused by a plugin.
- Rename the folder back to
pluginsand 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:
- Rename
.htaccessto.htaccess.bak. - Test the site. If it works, the issue was in that file.
- Create a new
.htaccesswith 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.
