Too Many Redirects? ERR_TOO_MANY_REDIRECTS and How to Fix It

0

A redirect can be really handy in many situations, but when used improperly, they can cause an infinite nightmare. If you’re tired of constantly dealing with too many redirects errors, read on for a few easy fixes for this pesky problem.

What Is a Too Many Redirects Error?

“ERR_TOO_MANY_REDIRECTS” is an error message that appears when a website creates a redirect loop. One redirect leads to another and creates a chain that redirects back to itself in a loop, and directs the user between different addresses infinitely.

When the browser has had enough, an ERR_TOO_MANY_REDIRECTS message appears. 

This is a pretty common problem. Our 2019 study into internal linking mistakes found that 8.3% of websites suffer from this issue, so if it’s a problem you’ve also come across, know that you’re not alone.

The creation of this redirect loop could depend a few things. It could be that your website has been recently migrated, but you’ve yet to update all of your page addresses, or maybe you’ve recently changed from HTTP to HTTP and your website doesn’t know which version of the page to redirect to. 

Maybe you’ve just recently created a new redirect that is in conflict with one that already exists. In any case, it’s usually because two redirects are competing against one another. 

What Does a Too Many Redirects Error Look Like in My Browser?

These error messages will appear differently in different browsers. Here are a few examples.

Firefox

The text of the Firefox error will read:

Too many redirects error in Firefox

Chrome

The text for the Chrome error will read: 

Error Too Many Redirects in Google Chrome

Microsoft Edge

The text for the Microsoft Edge error will read: 

What is the err too many redirects error1

Safari

The text for the Safari error will read: 

img-semblog

Whatever the message says, it can lead a user to believe that a website isn’t secure, which can reduce their trust. 

Needless to say, your top priority as a site owner is to fix the redirect issues ASAP. 

How to Identify a Too Many Redirects Error with the Site Audit tool

You can check if your website has redirect issues with the Site Audit tool. You’ll need to create a project for your domain if you haven’t already. 

Once the project is available, navigate to your project dashboard and perform the following steps:

  1. Open your Site Audit and go to the “Issues” tab. You’ll see a page like this:
I8Rr07ZiPENSZlzBrkNTXUiDQU7IT5j-mb8csr_QxDCbsCjFY-4vItvDGAIBw4UlGdmYCQoMbgQWBqkIIvND9UXsUfooZMvVxGujv59OuMrq2uULDSTaEGT_h1Pu0w
  1. Select “Redirect chains and loops” (highlighted in the screenshot above) to check if the error has been triggered. The Site Audit will automatically recognize the length of the chain and show you a full list of the URLs.
Site Audit Redirect Chains and Loops
  1. Identify the URLs that need fixing and get to work! Check out the handy ‘Why and how to fix it’ info box located at the top of the page for more insights.

How Do I Fix a Too Many Redirects Error?

Once you know where the ERR_TOO_MANY_REDIRECTS show up, you can start fixing the problem.

Here’s how we’d do it: Clear your browser cache and cookies.

The first thing you can try is clearing the cache and cookies in your browser. Sometimes a too many redirects error can occur when your browser cookies are caching old redirects. 

Here’s how you can go about it in Chrome and Firefox:

Chrome

  1. Click the three dots at the top right of your browser to access settings
too many redirects
  1. Navigate to “Privacy and Security” and click “Clear browsing data”
too many redirects
  1. Set your time range, then click “Clear data”
too many redirects

Firefox

  1. Click the three dots at the top right of your browser to access settings
too many redirects
  1. Navigate to “Privacy and Security” and then click “Clear data” 
too many redirects
  1. Click “Clear”
too many redirects

Clear your WordPress cache and cookies

You can also clear out your cache and cookies on WordPress via whichever plugin you’ve installed to help you speed up your site. Here’s how it works for two popular plugins:

WP Rocket plugin

  1. Go to your WordPress Admin Dashboard
  2. Navigate to “Settings” and then “WP Rocket”
too many redirects
  1. Locate “Quick Actions” and click “CLEAR CACHE”
too many redirects

W3 Total Cache plugin

  1. Go to your WordPress Admin Dashboard
  2. Navigate to “Performance” and then “Dashboard”
too many redirects
  1. Go to the W3 Total Cache Dashboard and click “Empty All Caches”
too many redirects

Once you’re done, refresh your webpage and see if the error is gone. If it isn’t, keep reading. 

Check your URL settings

The error could lie in your URL settings. If your home URL and website URL don’t match, then your user will get stuck in a redirect loop.

In WordPress, you can fix this easily. You just need to go to your settings and locate your “WordPress Address (URL)” and “Site Address (URL)”.

too many redirects

Check if they match. If they don’t, you’ll need to modify them so they do. If everything looks in order but the redirect error persists, here are two small things you may have missed:

  1. Make sure that there are no whitespaces at the beginning or end of the URLs
  2. Make sure there is a www at the beginning of the URLs (after the https://)

Check Your Security Protocol

You may use a security protocol (SSL certificate) to run your website. Although this can have a lot of benefits for your site, it could also contribute to your redirect error. Check out our article on SSL certificates.

Change your security protocol back to its default settings and refresh your page. If the error message is still there, try resetting your SSL certificate altogether.

Verify .htaccess

.htaccess is a big part of what controls page redirects, so even the smallest .htaccess problem could cause a domino effect in your page loading. 

To redefine your .htaccess file with an FTP client, just follow these steps:

  1. Use your FTP client to find your site files
  2. Access the WordPress files folder via the “Online File Manager”
too many redirects
  1. Go to your htdocs folder
too many redirects
  1. Find the .htaccess and download it (in case you need to restore it later)
too many redirects
  1. Right-click on the file to edit it. Now you can use the web-based text editor 
  2. Reset to the default settings, then save and refresh your site

If this hasn’t solved the error, you can restore the backup .htaccess file you previously downloaded. We’ve got one more fix for you to try! 

Check Your Plugins

The solution to your redirect error might hide in your WordPress plugins. You can disable the plugins currently active via the WordPress admin Dashboard. Go to “Plugins”.

too many redirects

Then select all plugins and choose “Deactivate” in the drop-down “Bulk Actions” and click “Apply”.

too many redirects

If the bulk action doesn’t solve the issue, you’ll need to test each plugin to see which one may be causing the redirect error. Enable them once more and refresh the page. 

Access the plugins folder (probably in the WordPress Content folder) and rename each folder individually or remove them simultaneously. Don’t forget to download a backup each time, then refresh your page.

Hopefully, this will solve your too many redirects error once and for all! 

Fixing the Too Many Redirects Error

Getting that little error message can be pretty annoying, but once you identify the source, fixing it is a piece of cake! Our recommendation? 

Use the Site Audit tool to regularly check and identify your redirects: keep them at no more than three redirects per chain — and make sure you always remove immediately any redirect loops error you find!

Check out the Site Audit tool today and start monitoring your website’s redirect chains. The sooner you do, the sooner they’ll be solved.

Find and Fix Sitemap Errors

with the Site Audit Tool

ADS illustration

FOLLOW US ON GOOGLE NEWS

 

Read original article here

Denial of responsibility! Search Engine Codex is an automatic aggregator of the all world’s media. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials, please contact us by email – [email protected]. The content will be deleted within 24 hours.

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More