How to Fix Too Many Redirects Error in WordPress

Share on:

You might have faced a weird error that says “Too Many Redirects”. This post will tell you the possible causes of this error and possible fixes.

Too Many Redirects means that the website or link that you are trying to visit has got itself in an infinite loop, meaning the URL that you are trying to visit is redirecting you to another URL and that URL is redirecting you to the initial URL that you entered. This may be caused due to a server configuration error or a cache error. Your WordPress configuration may also be responsible.

Too Many Redirects

How to Fix this Error?

I have listed some of the things which you can do to try to fix this error. Follow the steps below.

1) Clear your Browsing Data (Cache, saved pages etc.)

Browsers cache data from websites that you visit to speed up you experience in your subsequent visits. Follow the steps below to clear your browser cache:

  • On Chrome/Chromium-based browsers (Edge, Brave, etc.) – Open Chrome settings and scroll down to Privacy and Security and click on Clear browsing data. Now select Cached images and files from the list and click on Clear data.
Clear Browsing Data on Chrome
On Chrome
Clear Browsing Data on Edge
On Edge
Clear Browsing Data on Brave
On Brave
  • On Firefox – Open Settings and select Privacy & Security from the left-hand column. Scroll down to History and click on Clear History. Select the items you want to clear and click OK.
Clear Browsing Data on Firefox
On Firefox

2) Clear your WordPress Cache

Another reason for the “Too Many Redirects Error” can be caused due to a stale cache. To clear cache, go to your cache plugin (WP Rocket, WP Fastest Cache, etc.). If your hosting provider has a server-level cache, then clean that too. I have provided pictures on how to clear the server-level cache of Hostinger and SiteGround.

  • Clearing cache in Hostinger
Clearing cache in Hostinger
  • Clearing cache in SiteGround
Clearing Dynamic Cache on SiteGround
Clearing Memcached on SiteGround

3) Server Configuration Error

Many times, wrong .htaccess rules may lead to an infinite redirect loop. In that case, the best thing to do is to delete the .htaccess file and saving permalinks from WordPress.

Save Permalinks

This will re-generate the .htaccess file. After that, try visiting the link that was giving you the error. Your error should be fixed.

NOTE: Redirection plugins and SEO plugins like Yoast SEO may also cause this problem. If the .htaccess step doesn't solve your problem, then please disable the aforementioned plugins and try again.

4) Incorrect WordPress Configuration

Sometimes, due to some error, WordPress home URL and site URL may be defined incorrectly. If you can access your wp-admin, then go to Settings > General and change the values in WordPress Address (URL) and Site Address (URL) to your site URL.

Site URL

If you cannot access your site, then use FTP to access your website files and add the following lines to the end of your wp-config.php file:

define(‘WP_HOME’,’http://yourdomain.com’);
define(‘WP_SITEURL’,’http://yourdomain.com’);

This will ensure that WordPress loads on your domain correctly.

Summary

The following things may be responsible for the error “Too Many Redirects” in your WordPress site:

  • Stale browser cache
  • Stale web server cache
  • Server misconfiguration
  • Incorrect WordPress configuration

I really hope that this guide has helped you to fix the Too Many Redirects error in WordPress. If you have any queries or suggestions, then please let me know in the comments down below.

Share on:

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

I am the founder of WPSteam. I am currently doing my B.Tech in Electronics & Telecommunication Engineering from KIIT University, Bhubaneshwar, India

Leave a Reply

%d bloggers like this: