What Is the “ERR_TOO_MANY_REDIRECTS” Error?
The “ERR_TOO_MANY_REDIRECTS” error happens when a browser fails to load a webpage as a result of it’s caught in an infinite redirect loop.
This implies the requested web page redirects to a second web page, and the second web page redirects again to the unique web page—creating an countless cycle of redirects.
Finally, the browser provides up attempting to load the web page and returns a “too many redirects” error message.
Like this:
This “too many redirects” error is problematic for 2 causes:
- It negatively impacts the person expertise: Customers can’t entry your webpage and will depart your web site in consequence. Which implies misplaced site visitors. And potential misplaced income for your enterprise.
- It traps search engine crawlers: Search engine crawlers get caught within the redirect loop, so your pages can’t be correctly crawled. And in case your pages aren’t crawled and listed, they received’t rank in serps to drive site visitors to your web site.
On this publish, we’ll discover the causes of the “too many redirects” error and learn how to repair it.
However first, let’s study what this error appears like in several net browsers.
What Does the ‘Too Many Redirects’ Error Look Like in Browsers?
Totally different browsers present the “too many redirects” error in another way.
Right here’s an outline:
Google Chrome
In Google Chrome, the ERR_TOO_MANY_REDIRECTS error will present this message in the course of the display: “This web page isn’t working. instance.com redirected you too many instances.”
Like so:
And a button means that you can retry loading the web page.
Firefox
In Firefox, you may even see a message in the course of the display that claims: “The web page isn’t redirecting correctly.”
Like so:
And there’s a button to attempt reloading the web page.
Safari
In Safari, the “too many redirects” error message reads: “Safari Can’t Open the Web page.”
Like this:
In contrast to with Chrome and Firefox, Safari doesn’t supply a button for reloading the web page.
What Causes the ERR_TOO_MANY_REDIRECTS Error?
The ERR_TOO_MANY_REDIRECTS error happens when a browser is caught in a loop of redirects attempting to load your webpage.
This will occur for a number of causes, together with:
- Browser cookies and cache points: Corrupted cookies and an outdated cache might trigger a redirect loop that results in the ERR_TOO_MANY_REDIRECTS error
- Misconfigured redirects: In case your redirects battle with each other, it will probably additionally trigger the error
- Points with third-party companies and plugins: Misconfigured third-party companies corresponding to content material supply networks (CDN) and the usage of outdated plugins may cause “too many redirects” points in your web site
- Incorrect HTTPS settings: A misconfigured safe sockets layer (SSL) certificates or HTTPS redirect guidelines may trigger the difficulty
- .htaccess file misconfiguration: In case your web site’s .htaccess file (a file used to configure net server settings) has a defective variable, it will probably result in the ERR_TOO_MANY_REDIRECTS error in your web site
Under, we’ll undergo options to every of those potential causes of the error.
Easy methods to Repair Too Many Redirects: 10 Options
1. Clear Your Browser Cache and Cookies
In some circumstances, the true offender inflicting the “too many redirects” error may be your browser—not your web site.
Your browser might include corrupted cookies or an outdated cache. Each of which could set off the ERR_TOO_MANY_REDIRECTS for you, particularly. However not for different customers accessing your web site.
To verify whether or not that’s the case, attempt deleting the saved cache and cookies out of your browser. Right here’s how to do this on Chrome, Firefox, and Safari:
Google Chrome
Click on the three dots on the prime right-hand nook of your browser and click on “Settings.”
In settings, choose “Privateness and safety” from the sidebar and click on “Clear looking knowledge.”
Set your time vary to “All time.” You possibly can uncheck “Looking historical past,” then click on “Clear knowledge.”
Firefox
Click on the menu button on the prime right-hand nook of your browser and choose “Settings” within the drop-down.
In settings, choose “Privateness & Safety” from the sidebar. Then, scroll right down to the “Cookies and Website Knowledge” part and click on “Clear Knowledge.”
Click on “Clear.”
Safari
Click on “Safari” within the prime menu bar, adopted by “Settings…“
Click on on the “Superior” tab within the settings window, choose the checkbox subsequent to “Present options for net builders” if it’s not already checked, and shut the settings window.
“Develop” ought to now seem within the prime menu bar. Click on on it and choose “Empty Caches.”
2. Clear Your Website Cache
Like together with your browser, the cache saved in your web site may additionally trigger the “too many redirects” situation.
For those who use WordPress, the under two plugins may also help you clear your web site’s cached recordsdata.
W3 Whole Cache Plugin
Go to your WP admin dashboard and navigate to “Efficiency.” Then, click on “Dashboard.”
Subsequent, click on “empty all caches.”
Refresh your web page to see if the error is gone.
WP Tremendous Cache Plugin
Go to your WP admin dashboard, navigate to “Settings,” after which click on “WP Tremendous Cache.”
Scroll down and click on “Delete Cache” beneath the “Delete Cached Pages” part to take away all cached recordsdata.
Then, refresh your webpage to see whether or not the error is gone.
3. Clear Your Server Cache
The cache saved in your server will be one other explanation for “ERR_TOO_MANY_REDIRECTS” points.
The steps to clear your server cache can range relying in your internet hosting supplier.
Many managed WordPress hosts, corresponding to WP Engine, Kinsta, and SiteGround, present instruments inside their internet hosting dashboard that will help you simply clear the cache.
For those who’re utilizing Kinsta, you possibly can clear the cache by going to the “WordPress websites” web page inside your dashboard. And clicking “Actions” adopted by “Clear cache” from the drop-down.
In case you have a number of websites, make certain to pick out the proper one.
Choose the sort(s) of cache you need to clear and click on “Clear cache.”
In case your internet hosting supplier does not have a built-in device for clearing your cache, it’s possible you’ll have to contact their help crew for help.
4. Clear Your CDN Cache
A content material supply community (CDN) corresponding to Cloudflare, Fastly, and Akamai is an online of geographically distributed servers that work collectively to ship content material to customers extra effectively.
But when an outdated or infinite redirect loop will get cached, the CDN will hold sending the person’s browser in circles. Ensuing within the “too many redirects” error.
To resolve this, it’s essential to clear the cache in your proxy or CDN.
For those who’re utilizing Cloudflare, head to your area’s dashboard. Then choose “Caching” within the left-hand menu and choose “Configuration.”
Then, click on the “Purge All the pieces” button.
5. Examine Your Current Redirects
For those who’ve dominated out caching points, the “ERR_TOO_MANY_REDIRECTS” error could also be brought on by misconfigured rewrite guidelines in your server configuration recordsdata.
Configuration recordsdata are settings recordsdata that management how your net server behaves. They include directions that inform your server learn how to deal with requests, route site visitors, and handle safety settings.
Assessment the rewrite guidelines in your server configuration file to establish potential redirect loops.
The particular file will depend on your net server:
- Apache servers: Look within the .htaccess file
- Nginx servers: Look within the nginx.conf file
- IIS servers: Look within the Internet.config file
For those who’re utilizing an Apache server, you should utilize your .htaccess file to arrange 301 redirects.
However when you set it up incorrectly, like under, you possibly can run into points:
RewriteEngine On
# Redirect every part to /example-page
RewriteRule ^(.*)$ /example-page [R=301,L]
# Redirect /example-page to /
RewriteRule ^example-page$ / [R=301,L]
On this state of affairs, when customers attempt to entry “/example-page/,” they’ll be redirected to “/example-page” (with no trailing slash) utilizing a 301 (everlasting) redirect.
However the second rule then redirects “/example-page” again to “/example-page/,” creating an infinite .htaccess redirect loop.
To repair this redirect loop, you might take away the second rule that redirects “/example-page” again to “/example-page/.” Like this:
RewriteEngine On
# Redirect every part to /example-page
RewriteRule ^(.*)$ /example-page [R=301,L]
Now, customers will probably be completely redirected to “/example-page” after they attempt to entry “/example-page/”—with out getting caught in a redirect loop.
You possibly can simply use Semrush’s Website Audit device to test in case your web site has any redirect points like this. You’ll discover them by searching for the “# redirect chains and loops” situation.
6. Reset Your .htaccess File
It’s also possible to reset your .htaccess file to verify whether or not it’s the offender of the redirect error.
However as a result of making adjustments to your .htaccess file may cause main points together with your web site when you’re not cautious, solely do that if what you’re doing. Or if in case you have a developer that will help you.
Right here’s learn how to reset your .htaccess file again to the default configuration for WordPress:
Entry the WordPress recordsdata folder by going to your internet hosting supplier’s management panel. (We’re utilizing Bluehost for this walkthrough.) And click on “File Supervisor.”
Subsequent, go to your root listing folder.
The folder is often named “public_html,” “www,” “htdocs,” or “httpdocs.”
Discover the .htaccess file, right-click on it, and click on “Obtain” (in case it’s essential restore it later).
Then, right-click on the .htaccess file once more and click on “Edit.”
Assessment your present configuration. And ensure the foundations are set to the default WordPress .htaccess configuration.
If the foundations don’t match, delete the present ones, paste in these default guidelines, and save your file:
# 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
Keep in mind that when you do that, you’ll lose any customized guidelines you might have arrange.
7. Examine Your URL Settings
Misconfigured URL settings may cause the ERR_TOO_MANY_REDIRECTS errors on a WordPress web site.
This occurs when your WordPress web site factors on the unsuitable area, usually throughout a bunch migration or area change.
To test for this situation, go to your WordPress dashboard and navigate to “Settings.” Then, find your “WordPress Handle (URL)” and “Website Handle (URL).”
Examine to see in the event that they match. In the event that they don’t, modify them to level to the proper area.
8. Disable Plugins
Generally, the redirects you implement utilizing WordPress plugins would possibly battle with redirects that exist on the server stage.
Your plugins may be outdated or have corrupted knowledge.
To check whether or not your plugins are inflicting issues, disable them. Then, re-enable them one after the other to see which plugin is inflicting the issue.
Go to your WordPress admin dashboard and choose “Plugins” > “Put in Plugins.”
Choose all of your plugins by checking the field within the prime left-hand nook.
Choose “Deactivate” from the “Bulk Actions” drop-down menu and click on “Apply.”
Now, refresh your web site. For those who don’t see the “too many redirects” error message, plugins have been creating the difficulty.
Activate every plugin one after the other. As you activate every plugin, reload your web site to see which plugin precipitated the error.
When you establish the defective plugin, report the issue to the plugin help crew. Or discover one other plugin with the identical performance to make use of as a substitute.
9. Examine for HTTPS-Associated Points
SSL certificates allow you to make use of hypertext switch protocol safe (HTTPS) in your web site to encrypt and defend knowledge transmitted between the server and the browser. So, when customers entry your web site, their knowledge is protected from attackers.
However when you don’t set up an SSL certificates correctly or drive HTTPS in your web site with out putting in an SSL certificates, your web site might set off the “too many redirects” error.
Use an SSL checker device corresponding to SSL Shopper to make sure you’ve put in your SSL certificates correctly.
You may additionally get an “ERR_TOO_MANY_REDIRECTS” error when you misconfigure HTTPS redirect guidelines. Which instruct your server to redirect customers out of your web site’s unsecure HTTP model to the safe HTTPS model.
For those who received your SSL certificates by way of your net host, they’ll seemingly do that for you mechanically.
However when you don’t write these guidelines appropriately (corresponding to within the .htaccess file we talked about earlier), they’ll trigger redirect loops, resulting in the “too many HTTP redirects” error.
To keep away from this situation, make sure you configure your HTTPS redirect guidelines appropriately.
10. Examine Any Third-Get together Providers
For those who use Cloudflare as your CDN and your SSL is ready to “Versatile,” it might set off redirect loops in your web site. As a result of this mode forces your web site to load over HTTP even when you have already got an SSL certificates.
You possibly can repair it by switching to a different encryption choice in Cloudflare, corresponding to Full or Full (strict).
To do that, register to your Cloudflare dashboard and choose your area.
Go to “SSL/TLS” within the left-hand menu.
Then, set the encryption mode to “Full” or “Full (strict).”
Easy methods to Establish ERR_TOO_MANY_REDIRECTS Errors on Your Web site
Manually figuring out the ERR_TOO_MANY_REDIRECTS error generally is a time-consuming and tedious course of.
Semrush’s Website Audit device mechanically scans your web site for redirect-related points. Like redirect chains and loops.
Begin by establishing a challenge to your web site.
Go to the Website Audit device, enter your URL, and click on “Begin Audit.”
The “Website Audit Settings” window will pop up.
Right here, choose the variety of pages you need to scan (you may also tweak different crawler settings). Then, click on “Begin Website Audit.”
As soon as the audit is full, navigate to the “Points” tab and seek for “redirect.”
The device will present whether or not your web site has redirect chains and loops.
If points exist, click on on “# redirect chains and loops” to see the precise pages triggering these points.
You’ll see an inventory of URLs like this:
Clicking the “Why and learn how to repair it” hyperlink on the prime of the report can information you on fixing these points.
For those who run a big web site, schedule periodic audits to handle new redirect-related points.
To schedule audits, click on the cog icon within the prime right-hand nook. Scroll right down to the “Website Audit settings” part and click on “Schedule.”
Now you possibly can schedule weekly audits to your web site. Click on “Save” if you’re prepared.
Repair and Forestall Redirect Errors with Common Website Audits
Redirect-related points corresponding to redirects chains and loops might set off the ERR_TOO_MANY_REDIRECTS error.
Fixing these points as they pop up ensures you present a very good person expertise and don’t lose useful site visitors.
Semrush’s Website Audit device mechanically checks for points together with your web site’s redirects. So yow will discover and repair them quick.
Attempt the Website Audit device without spending a dime right this moment.