Blog Menu

Key highlights 

  • This guide outlines common causes of the “Too Many Redirects” error in WordPress and offers solutions to get your site back on track. 
  • From misconfigured redirects and plugin conflicts to SSL certificate issues, we’ll cover troubleshooting techniques for each problem. 
  • Learn how to analyze your .htaccess file, clear your site and browser caches, verify your SSL/TLS status and more. 
  • We’ll also provide advanced troubleshooting tips involving DNS settings and third-party service integrations. 
  • Follow these practical solutions to resolve those pesky redirect errors, improve your site’s SEO and enhance the user experience. 

Introduction 

Have you ever tried to open your WordPress site and see an error message saying, “Too many redirects”? It can be frustrating, especially if you don’t know what caused it. 

The ‘Too Many Redirects’ error in WordPress prevents you from accessing your site. It typically occurs due to misconfigured settings, faulty plugins, or conflicts between HTTP and HTTPS.

Fortunately, this issue is common and can be resolved with a few simple steps. In this guide, we’ll explore the common causes, solutions and best practices to prevent it from happening again. 

What does “too many redirects” mean?

The ‘Too Many Redirects’ error, also known as a redirect loop, occurs when your website continuously redirects visitors from one page to another, preventing them from reaching the intended destination. After a while, your browser encounters an unexpected issue, stops attempting to load the page and displays an error message saying there are “too many redirects.”

Browsers detect this loop and display an error message such as: 

  • ERR_TOO_MANY_REDIRECTS (Google Chrome) 
  • The page isn’t redirecting properly (Firefox) 
  • Too many redirects occurred (Safari) 

What causes the issue of redirect loop on a website? 

The “Too Many Redirects” error occurs when there’s a misconfiguration in the website’s redirects, often due to conflicting instructions from plugins or server settings. These conflicting directives cause a loop where the site keeps redirecting, leading to the error message being displayed to users. 

Common causes of the “Too Many Redirects” error 

There are many common causes of the “too many redirects” error in WordPress. Let’s explore some of the top reasons this message might appear: 

1. Faulty plugin or theme conflict (improper redirect rules from plugins). 

If you install plugins that don’t work well together, they can cause your website to keep redirecting. 

For example, let’s say you have: 

  • An SEO plugin that redirects all non-www URLs to www (or vice versa). 
  • A security plugin that forces all traffic to use HTTPS instead of HTTP. 

Now, if these plugins conflict, one might redirect a URL to www, while the other forces it to HTTPS. But if there’s a misconfiguration, the SEO plugin could try to switch it back to HTTP, creating an endless loop. 

As a result, your browser keeps bouncing between different versions of the URL, leading to the “Too Many Redirects” error. 

Other plugins that can cause the “Too Many Redirects” error if misconfigured include: 

  • Caching plugins – Speed up your site but may cause redirect issues if settings conflict. (For example, WP Rocket, W3 Total Cache, WP Super Cache) 
  • Redirection plugins – Manage redirects but can create loops if not set up correctly. (For example, Redirection, Simple 301 Redirects, Safe Redirect Manager) 
  • SSL plugins – Force HTTPS but may cause conflicts if your server or WordPress settings aren’t properly configured. (For example, Really Simple SSL, WP Force SSL, SSL Insecure Content Fixer) 

If you’re facing this error, checking these plugins and their settings can help resolve it quickly. 

2. Misconfigured .htaccess file 

The .htaccess file is like a traffic cop for your website: It directs visitors where they should go. It’s pretty sensitive, though. Small mistakes can lead to issues like the “too many redirects” error. 

For example, suppose you manually edit the .htaccess file and make syntax errors like typos or incorrect commands. In that case, the errors you introduced could corrupt the file and cause the entire web server to behave unexpectedly. 

In addition, some WordPress plugins or themes may automatically make changes to the .htaccess file, which can alter how your website functions. If these plugins or themes aren’t properly coded or conflict with other plugins or server settings, they could create erroneous or conflicting rules that lead to a “too many redirects” error. 

3. Incorrect WordPress URL settings (mismatch between site URL and WordPress URL). 

WordPress has two main settings for your website’s address: the WordPress address and the site address. If these don’t match or aren’t set up right, WordPress might keep trying to switch between the two, causing the redirect error message.

For example, if your site URL is set to {https://example.com} but your WordPress URL is {http://example.com}, it may result in an endless redirect loop. 

4. SSL and HTTPS conflicts 

Forcing HTTPS without proper SSL configuration can result in redirect errors. If both HTTP and HTTPS are forced in different ways (via plugins, .htaccess, or server settings), they may clash. 

5. CDN and caching problems (Cloudflare or other CDN misconfigurations). 

A content delivery network (CDN) improves your website’s loading speed. However, incorrect configuration can lead to redirect issues. For example, a “too many redirects” error message might appear if your CDN tries to serve a version of your website that doesn’t match your current settings. 

6. Server-level redirect issues (Nginx or Apache settings causing redirection problems). 

Web servers like Apache and Nginx have their own redirect configurations. If these are misconfigured, they may override WordPress settings and cause conflicts. 

How to fix the redirect loop error in WordPress 

The “Too Many Redirects” error can be annoying, but it usually happens due to several reasons mentioned above. The good news is that it’s easy to fix! Just follow these steps one by one to get your WordPress site working again. 

1. Force refresh the page in your browser

Sometimes your browser holds on to outdated information that it shouldn’t. Forcing a refresh tells your browser to ignore the stored (cached) version of your site and load the newest version from the WordPress site.

Here’s how to force refresh a page on different browsers:

  • Chrome on Windows: Ctrl + F5
  • Chrome on Mac: Command + Shift + R
  • Firefox on Windows: Ctrl + F5
  • Firefox on Mac: Command + Shift + R
  • Microsoft Edge: Ctrl + F5
  • Safari: Command + Option + R

2. Clear browser cookies and cache

Occasionally, old data stored in your browser can cause the “too many redirects” error message. A simple fix is to clear the cookies and cache in your web browser.

Let’s look at how to clear your browser cache (we’ll use Google Chrome for this example).

  • On Chrome, click the three dots at the top right corner of the window, then select Clear browsing data.
How to clear cookies and cache in Google Chrome.
  • A popup box will appear. Choose how much data you’d like to erase (expressed as a time range) and check the boxes for Cookies and other site data and Cached images and files.
  • After that, click Clear data.
Clearing cookies and cache in Google Chrome.

Alternatively, you can clear your WordPress cache with a free caching plugin like WP Super Cache. After deleting the cache data, try accessing your website to see if it’s back to functioning properly.

3. Check your WordPress URL settings

If clearing your cookies and cache doesn’t do the trick, go to your WordPress site and check if your WordPress Address and Site Address match. If they don’t, that mismatch might be what’s causing the redirect issues.

  • To check this, go to your WordPress dashboard and click on Settings, then General.
Accessing the Settings page on the WordPress dashboard.
  • Ensure the WordPress Address (URL) and Site Address (URL) are the same. If they aren’t, correct them and then click Save Changes.
WordPress Address (URL) and Site Address (URL) settings.

4. Disable all plugins & find the culprit

Plugins are an integral part of the WordPress ecosystem. They help you extend your website’s functionality without modifying the core code.

As we explained earlier, though, plugins can sometimes conflict (especially when one is misconfigured) and cause the redirect error message.

As a result, you may have to deactivate all your plugins temporarily to figure out which is causing the problem.

How to deactivate plugins on the WordPress dashboard.

If your WordPress site returns to normal after deactivating the plugins, it means that one of them is causing the issue. Reactivate them one by one until your WordPress site delivers another “too many redirects” message. Voila! You’ve found the culprit.

5. Switch to a default WordPress theme 

If the issue isn’t the plugins, it may be the theme. Try switching to a default WordPress theme like Twenty Twenty-Four to see if your current theme is causing the problem.

A WordPress permalink is simply the web address used to link to the content on your website. Other people use the URL to visit a specific post, page or other content on your WordPress site.

The “permalink” part implies that it’s a permanent link, meaning you shouldn’t change it because other websites and users will use it to find your content.

If the permalink settings in your WordPress website aren’t configured correctly or don’t match the configuration on your web server, it can result in a redirection loop.

Resetting the permalinks refreshes these settings, which can clear out any misconfigurations or errors causing the redirects issue.

  • To reset your permalinks, go to your WordPress dashboard and click on Settings, then Permalinks.
How to access the permalinks page on WordPress dashboard.
  • Choose a different permalink structure, save it, then revert to your original structure and save it again.

7. Fix SSL and HTTPS redirect issues

Misconfigured SSL settings can also cause redirect issues. For example, if you force HTTPS on your WordPress site without setting up an SSL certificate or fail to install the SSL certificate correctly, you could get the “too many redirects” error.

To prevent that from happening, make sure to install your SSL certificate correctly and that the change to HTTPS is reflected in your website’s URL settings (in Settings > General).

How to check for HTTPS on the URL settings.

8. Check CDN and cloudflare configurations  

The “too many redirects” error message can also be related to your CDN settings. A CDN like Cloudflare helps deliver your website’s content to users more quickly. However, if it’s not configured correctly, it can cause redirect issues.

Here’s how to check if your CDN is causing the error:

  • Temporarily disable your CDN. This option is usually available in your CDN’s dashboard.
  • After turning it off, try accessing your website.
  • If your website works fine with the CDN turned off, the issue might be with the CDN’s settings. Look specifically for settings related to URL redirects or SSL/TLS. These are often the culprits.
  • Make sure your CDN’s SSL settings match your website’s settings. For example, if your website is on HTTPS, your CDN should also be configured to use HTTPS.

9. Check for manual redirects in your code

If you manually added redirect rules to your website’s files, they might be causing the error message.

  • Check the wp-config.php file and your theme’s functions.php file for any redirect rules or functions that might be causing the problem.
  • To access these files, go to your hosting provider’s control panel (we’ll be using Bluehost) and click on File Manager.
  • Then, open your WordPress files folder to access the wp-config.php to check for any redirect rules that could be causing the issue.
How to access the wp-config.php file in File Manager.

Also, access your theme’s functions.php file (which you can find in your wp_content folder) and check for the same.

How to access the functions.php file in File Manager.

10. Reset your .htaccess file

As we mentioned earlier, the .htaccess file is sensitive, and even the small mistakes in it can lead to issues. If the rules in this file get messed up, it can send visitors in circles by creating too many redirects.

If you’ve attempted all the other solutions we’ve discussed but still get the same redirects error, you might have to reset this file manually.

To do so, connect to your website using an FTP client or the File Manager in your hosting account’s control panel. Then, locate the .htaccess file in your WordPress files folder.

How to access the .htaccess file in File Manager.

Note: Before you do anything to the .htaccess file, download it to your computer so that if anything goes wrong you can upload it and return to where you started.

Now rename the file to something like .htaccess_old and return to your WordPress admin area. Click on Settings, then Permalinks and hit Save Changes (you don’t have to change anything).

How to access the permalinks page on WordPress dashboard.

This will generate a new .htaccess file.

If the ERR_TOO_MANY_REDIRECTS issue was due to a problem with this file, it should be fixed now.

11. Increase WordPress memory limit

Once in a while, a “too many redirects” error occurs when your website tries to do more than your web server can handle. To prevent that, you need to increase your WordPress memory limit.

Here’s how to do that:

  • Connect to your website using an FTP client or the File Manager in your hosting account’s control panel and find the wp-config.php file.
How to access the wp-config.php file in File Manager.
  • Press Edit, then add the following code: define(‘WP_MEMORY_LIMIT’, ‘256M’). This code increases the memory limit to 256 MB, which should be enough for most WordPress websites.

12. Contact your hosting provider

If the fixes above haven’t solved your redirects problem, you may have to contact your hosting provider. Sometimes the problem is with the server itself, or you might be unaware of specific configurations for your hosting environment.

Preventing “Too Many Redirects” error in the future 

The best way to solve a problem is to prevent it from happening in the first place. So, let’s go over some techniques you can use to avoid the frustrating “too many redirects” error from occurring and ensure your WordPress site keeps running smoothly.

1. Invest in a good hosting provider

Your hosting service plays a big part in your website’s health. Therefore, choose a hosting provider known for good performance and excellent customer support. If anything goes wrong, you want to be sure you have an expert team ready to help you out.

A web hosting provider like Bluehost offers fast, reliable and secure hosting. Bluehost even gives you a free domain name for one year after signing up.

Bluehost’s WordPress hosting page.

2. Use themes and plugins from trustworthy sources

The best plugins have high reviews, lots of active installations and a recent “Last Updated” date.

Three well-rated plugins with many active installations.

WordPress core is also regularly updated to improve performance and enhance security. As a result, an outdated theme or plugin may be incompatible with the latest version and not function as intended. This could lead to errors or conflicts, including redirect problems.

To prevent that from happening, take care to install regularly updated plugins, as updates often fix bugs that could cause redirect issues.

You can also turn on auto-updates for your themes and plugins.

Here’s how to turn on auto-updates for plugins:

  • Go to your WordPress dashboard.
  • Navigate to Plugins > Installed Plugins.
  • Select all the plugins by checking the Plugin box.
  • On the Bulk actions drop-down menu, click on Enable auto-updates.

Here’s how to do it for themes:

  • Go to your WordPress dashboard.
  • Navigate to Appearance > Themes.
  • Click on a theme thumbnail on the Appearance screen, then click on the Enable auto-updates action link.

3. Set up redirect rules properly

If you need to set up redirects, make sure you do so correctly. Redirects are like road signs on your website that guide browsers. But if you set them up incorrectly, they can send your browser in circles, causing a redirect error.

Use a reliable plugin like 301 Redirects to help you set up redirects if you’re unsure how to configure them manually.

4. Back up your website regularly

Always ensure you have a recent backup of your website. That way if something goes wrong, you can restore your website to a previous version before the issue started.

Think of it like having a spare tire in your car — you hope you don’t need it but it’s a lifesaver if you do.

5. Use a reliable SSL configuration 

A properly configured SSL (Secure Sockets Layer) certificate is crucial for website security and SEO. Ensure your SSL certificate is valid, correctly installed, and applied to all website pages. Avoid issues like mixed content (where HTTP and HTTPS resources load simultaneously) and conflicting HTTPS redirects, which can create redirect loops and negatively impact user experience and search rankings. Regularly check for SSL-related errors using tools like SSL Labs’ SSL Test. 

6. Implement proper caching and CDN settings 

Caching and Content Delivery Networks (CDNs) help improve website performance by reducing load times, but misconfigurations can cause redirect loops. Ensure that your caching rules do not store old redirect settings that might interfere with new configurations. 

Final thoughts: How to fix the “too many redirects” error in WordPress

While not overly complicated, dealing with the ERR_TOO_MANY_REDIRECTS message in WordPress can be annoying and time-consuming. Bluehost has a team of experts available 24/7 to help you with redirection errors and other common issues you may face while building your website.

We offer WordPress hosting plans with features like round-the-clock support, top-notch security and faster site speeds. Contact us today to learn how we can help support the growth of your WordPress site.

FAQs

What causes “Too Many Redirects” error in WordPress? 

This error occurs due to misconfigured redirects, incorrect WordPress URL settings, faulty plugins, SSL conflicts, or caching issues. 

How do I fix the “Too Many Redirects” issue if I can’t access the WordPress dashboard? 

You can disable plugins, reset the .htaccess file, or update your WordPress URL settings using FTP or phpMyAdmin. 

Can Cloudflare cause a redirect loop? 

Yes, incorrect Cloudflare settings, especially “Flexible SSL,” can trigger redirect loops. 

How can I prevent “Too Many Redirects” error in the future? 

Use proper SSL configurations, keep plugins/themes updated, avoid conflicting redirects and invest in good hosting. 

  • Devin is a Senior Event Marketing Manager for the Bluehost brand. He is our brand steward for all things Bluehost and WordPress. You'll always see him supporting Bluehost at WordCamps around the world!

  • Anushree is a content writer at Bluehost. With 3 years of experience across different content verticals, she strives to create user friendly and solution driven content. Being a sports fanatic, she can be found scanning different sports content.

Learn more about Bluehost Editorial Guidelines

Write A Comment

Up to 75% off on hosting for WordPress websites and online stores