Too many redirects” in WordPress website is a common issue that can prevent you from accessing your website. mostly when you install new security plugins, redirect http to https in wordpress, or changing wordpress domain this problem occurs.  Here’s a step-by-step guide to diagnose and resolve this problem effectively.

1. Check Your Website in an Incognito Tab or Another Browser

Before diving into troubleshooting, open your website in an incognito tab or another browser. This step ensures the issue isn’t related to your browser’s cache or cookies and you didnt get a false too_many_redirects error

2. If You Have Access to WordPress Admin

Clear Your Caching Plugin Cache

  • Navigate to your caching plugin settings (e.g., WP Rocket, LiteSpeed Cache, WP Super Cache, W3 Total Cache, or others).
  • Clear all caches and refresh your website  in an incognito tab.

Too Many Redirects WordPress Clear cache

Update Permalink Settings

  • Go to Settings > Permalinks in the WordPress dashboard.
  • Click Save Changes without making any modifications.

Too Many Redirects WordPress - Permalinks

Deactivate Plugins

If the above steps don’t resolve the issue, plugins like really simple security or cache plugins may have conflict and cause the problem, for deactivate plugins:

  1. Go to the Plugins section.
  2. Deactivate all plugins.
  3. Check if the issue persists. If the problem is resolved, reactivate the plugins one by one to identify the conflicting plugin.

3. If You Don’t Have Access to WordPress Admin

If you’re locked out of the WordPress admin panel, follow these steps:

Add Lines to wp-config.php

Too Many Redirects WordPress - Change Wp config

Add the following lines to your wp-config.php file:

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

Replace example.com with your domain name. Save the file and refresh your site. on newly moved websites this will fix too_many_redirects in WordPress.

Reset .htaccess to Default (Probably Fix Too Many Redirects in WordPress)

Connect to your site via FTP or a file manager, edit & Reset your .htaccess file to the default WordPress configuration. Replace the contents of the file with the following code:

# BEGIN WordPress

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Save the file and refresh your site. 90% of times this item fix too_many_redirects error in wordpress

Disable All Plugins From Files

To disable all plugins without admin access:

  1. Connect to your site via FTP or a file manager.
  2. Navigate to the wp-content/plugins/ folder.
  3. Rename the plugins folder to something like plugins_old.
  4. Refresh your site. If the issue is resolved, rename the folder back and disable plugins one by one to find the conflicting plugin.

Conclusion of Fixing too many redirects in WordPress

The “too many redirects” issue can often be resolved by clearing caches, updating settings, or identifying problematic plugins. If none of these steps work, contact your hosting provider for assistance, as the problem may be server-related.

Leave a Reply

Your email address will not be published. Required fields are marked *