We come up across a lot of dissimilar errors here at Kinsta, and ERR_TOO_MANY_REDIRECTS (also known as a redirect loop) is 1 we see on a regular ground. Typically this occurs after a recent change on your website, a misconfiguration of redirects on your server, or wrong settings with 3rd-party services. But don't worry, this error is fairly like shooting fish in a barrel to gear up.

Check out the recommendations beneath on how to fix this error and get your site dorsum up and running.

What is the ERR_TOO_MANY_REDIRECTS Error?

The reason for ERR_TOO_MANY_REDIRECTS is pretty much what it sounds like, something is causing too many redirects, sending your website into an infinite redirection loop.

Essentially the site is stuck (such as URL ane points to URL 2 and URL 2 points back to URL 1, or the domain has redirected you lot too many times) and unlike some other errors, these rarely resolve themselves and will probably need you to accept action to ready it.

You might have also come across the error "request exceeded the limit of ten internal redirects due to probable configuration error".

At that place are a couple of dissimilar variations of this fault depending upon the browser you lot're running.

Google Chrome

In Google Chrome this error volition show every bitERR_TOO_MANY_REDIRECTS (as seen beneath) or This webpage has a redirect loop problem.

This folio isn't working. domain.com redirected yous likewise many times.

ERR_TOO_MANY_REDIRECTS in Google Chrome
ERR_TOO_MANY_REDIRECTS in Google Chrome

(Cheque out how to set up Chrome'southward ERR_CACHE_MISS error).

Mozilla Firefox

In Mozilla Firefox it will evidence asThe page isn't redirecting properly (as seen below).

An error occured during a connection to domain.com. This problem can sometimes be acquired past disabling or refusing to take cookies.

ERR_TOO_MANY_REDIRECTS in Firefox
ERR_TOO_MANY_REDIRECTS in Mozilla Firefox

Microsoft Edge

In Microsoft Border, information technology will simply show equallyThis page isn't working correct now (as seen below).

Domain.com redirected you too many times.

ERR_TOO_MANY_REDIRECTS in Microsoft Edge
ERR_TOO_MANY_REDIRECTS in Microsoft Edge

Safari

In Safari, it will show every bit Safari Can't Open the Page (as seen below).

Besides many redirects occurred trying to open "domain.com." This might occur if you lot open up a page that is redirected to open another page which is then redirected to open the original page.

ERR_TOO_MANY_REDIRECTS error in Safari
ERR_TOO_MANY_REDIRECTS error in Safari

Here are some recommendations and things to check to fix the error (sorted in order past most common reasons nosotros see):

  • Delete cookies on that specific site
  • Articulate WordPress site, server, proxy, and browser cache
  • Make up one's mind nature of redirect loop
  • Check your HTTPS settings
  • Check third-party services
  • Check your WordPress site settings
  • Temporarily disable WordPress plugins
  • Cheque redirects on your server

Delete Cookies on That Specific Site

Google and Mozilla both in fact recommend right below the error to "try clearing your cookies." Cookies tin sometimes incorporate faulty data in which could cause the ERR_TOO_MANY_REDIRECTS error. This is 1 recommendation y'all can endeavor even if you're encountering the mistake on a site y'all don't own.

Due to the fact that cookies retain your "logged in" status on sites and other settings, we recommend just deleting the cookie(s) on the site that is having the problem. This way you won't impact any of your other sessions or websites that you frequently visit.

Follow the steps below to delete a cookie on a specific website in Google Chrome.

Pace i

In Google Chrome click on the three small dots in the upper correct-manus corner. Then click on "Settings."

Chrome settings
Chrome settings

Step ii

Scroll downwardly and click on "Avant-garde."

Chrome advanced settings
Chrome advanced settings

Step three

And then click on "Content settings."

Chrome content settings
Chrome content settings

Step four

Click on "Cookies."

Chrome cookies
Chrome cookies

Step 5

Then click on "See all cookies and site information."

Chrome see all cookies
Chrome come across all cookies

Footstep vi

Search for the site (domain) where you are encountering the ERR_TOO_MANY_REDIRECTS error. Yous tin can and so delete the cookie(due south) currently stored on your computer for that domain. So attempt visiting the site over again.

Delete cookie in Chrome
Delete cookie in Chrome

Articulate Server, Proxy, and Browser Enshroud

Due to the fact that redirect loops are responses that tin can be cached, information technology's always recommended to try clearing the cache on your WordPress site, the server, third-party proxy services, and even your browser if necessary.

Clear WordPress Site Cache

Depending upon the type of redirect loop, you might still be able to proceeds access to your WordPress admin dashboard. In this case, yous can easily clear the cache inside the settings of your caching plugin. Here are a couple of quick links on how to clear WordPress enshroud with popular plugins:

  • Clear Cache with Cache Enabler
  • Articulate Cache with W3 Full Cache
  • Clear Cache with Super Cache

If you're a Kinsta client, you can hands clear your cache from the WordPress admin toolbar.

Clear Kinsta cache from WordPress admin
Clear Kinsta cache from WordPress admin

Clear Server Cache

If you lot tin't access WordPress admin, many WordPress hosts take their own control console tools for clearing the enshroud on your WordPress site.

If you're a Kinsta client, you tin can manually articulate WordPress cache from within the MyKinsta dashboard. Only click on your site, click into tools, and click on the "Articulate Enshroud" button. And then check your site to see if the redirect loop still exists.

Clear WordPress cache
Articulate WordPress cache

Clear Proxy Cache

If you're using a third-party reverse-proxy service such as Cloudflare or Sucuri, it tin can besides be beneficial to clear the cache on their side.

Cloudflare

To purge Cloudflare cache, login to their dashboard, click into "Caching" and click on "Purge Everything."

Purge cache

Sucuri

To purge Sucuri enshroud, login to their dashboard, get to "Performance" and click on "Clear Cache."

Clear Sucuri cache
Clear Sucuri enshroud

Clear Browser Cache

If you want to check and encounter if it might be your browser cache, without clearing your cache, you tin can ever open upwards your browser in incognito mode. Or test another browser and encounter if you still run into the ERR_TOO_MANY_REDIRECTS error.

Open Chrome in Incognito mode
Open Chrome in Incognito mode

If you make up one's mind it is being caused by your browser enshroud, you lot tin then articulate it. Below are instructions on how to do it in various browsers:

  • How to Strength Refresh a Single Folio for All Browsers
  • How to Clear Browser Enshroud for Google Chrome
  • How to Clear Browser Cache for Mozilla Firefox
  • How to Clear Browser Cache for Safari
  • How to Articulate Browser Cache for Internet Explorer
  • How to Clear Browser Enshroud for Microsoft Edge
  • How to Clear Browser Cache for Opera

Determine Nature of Redirect Loop

If immigration the enshroud didn't work, then you'll want to encounter if you can make up one's mind the nature of the redirect loop. Our gratuitous online Redirect Checker tool tin can assist provide some further analysis into what might be going on. This could likewise exist done via cURL.

For example, on the site below, it has a 301 redirect loop back to itself, which is causing a large chain of faulty redirects. You can follow all the redirects and decide whether or not it'southward looping dorsum to itself, or peradventure is an HTTP to HTTPS loop in which nosotros'll discuss how to solve that further below.

Too many redirects
Too many redirects

The Redirect Path Chrome extension tin can too be very useful and provides insights into all of the redirects happening on your site (specific URL or page.

Redirect Path extension
Redirect Path extension

Cheque Your HTTPS Settings

Another thing to cheque is your HTTPS settings. A lot of times we 've seen ERR_TOO_MANY_REDIRECTS occur when someone has simply migrated their WordPress site to HTTPS and either didn't cease or gear up something incorrectly.

one. Don't Force HTTPS Without an SSL Certificate

This is by far the most common reason we see on a regular basis. If you force your WordPress site to load over HTTPS without starting time installing an SSL certificate, you'll instantly throw your site into a redirection loop. To fix this, simply install an SSL certificate on your WordPress site.

It's likewise recommended to run an SSL check. SSL/TLS certificates crave not only your master document but as well what they call intermediate certificates (chain) to also exist installed. These need to be fix properly.

We recommend using the costless SSL check tool from Qualys SSL Labs. It is very reliable and nosotros use it for all Kinsta clients when verifying certificates. Simply head over to their SSL cheque tool, input your domain into the Hostname field and click on "Submit." You can also select the option to hide public results if you prefer. It could take a minute or two to scan your site'southward SSL/TLS configuration on your web server.

SSL check
SSL test

two. Don't Apply an SSL Plugin, Update your Difficult-coded Links

In that location are some gratis SSL WordPress plugins, such as the Really Simple SSL plugin that will help you lot automatically redirect to HTTPS. Nevertheless, we don't recommend this method as a permanent solution because third-political party plugins tin always innovate some other layer of problems and compatibility issues. It's a good temporary solution, merely you should really update your difficult-coded HTTP links.

We have a great tutorial with 4 easy ways to do a search and replace in WordPress. If y'all're a Kinsta client, you can e'er accomplish out to our support team to do this for yous as well.

3. Check HTTP to HTTPS Redirects on Server

It could very well be that perhaps the HTTPS redirect rules on your server were misconfigured.

Redirect HTTP to HTTPS in Nginx

If your web server is running Nginx, you tin easily redirect all of your HTTP traffic to HTTPS by adding the following lawmaking to your Nginx config file. This is the recommended method for redirecting WordPress running on Nginx.

server { listen 80; server_name domain.com www.domain.com; return 301 https://domain.com$request_uri; }

We apply Nginx for everyone here at Kinsta. The great news is that you don't have to worry about this. If you demand to add together a redirect simply open a quick support ticket and let us know which domain yous need to be redirected. We then add together information technology to the Nginx config for you lot.

Bank check Out Our Video Guide to Redirects

Redirect HTTP to HTTPS in Apache

If your web server is running Apache, you lot can easily redirect all of your HTTP traffic to HTTPS by adding the post-obit code to your.htaccess file. This is the recommended method for redirecting WordPress running on Apache.

            RewriteEngine On RewriteCond              %              {              HTTPS              }              off RewriteRule              ^              (              .              *              )$ https:              //%{HTTP_HOST}%{REQUEST_URI} [L,R=301]                      

4. Check For Likewise Many HTTPS Redirects

Peradventure you simply have too many HTTPS redirects. You can easily check your site to run across how many redirects information technology'south using with Patrick Sexton's Redirect mapper tool. Here is an example below of redirects that are not fix up correctly which are easily spottable using the redirect mapper. You tin see that there are indistinguishable HTTPS redirects happening on both the world wide web and not-world wide web versions.

redirects not setup correctly
Redirects

Cheque Tertiary-Party Services

ERR_TOO_MANY_REDIRECTS is also often commonly caused by reverse-proxy services such equally Cloudflare. This usually happens when their Flexible SSL choice is enabled and you already have an SSL certificate installed with your WordPress host. Why? Because, when flexible is selected, all requests to your hosting server are sent over HTTP. Your host server most likely already has a redirect in place from HTTP to HTTPS, and therefore a redirect loop occurs.

To gear up this you need to modify the Cloudflare Crypto settings from Flexible to either Full or Total (strict). If you're a Kinsta client, make certain to likewise cheque out our steps on how to install an SSL certificate while using Cloudflare.

Cloudflare full
Set Cloudflare crypto level to total

You can use their Always Use HTTPS folio rule to redirect all users to HTTPS without creating a loop. Another thing to lookout out for with Cloudflare is their forwarding URL redirection rules. Be careful not to create a redirect where the domain points to itself as a destination. This can cause an space redirect error, and the affected URLs will not be able to resolve.

If you're using StackPath, they accept an pick called "Origin Pull Protocol" that needs to be set to HTTPS but.

Using Cloudflare DNS Only

If you lot only want to use Cloudflare's DNS, and non their proxy/WAF service, and so you lot should brand sure your DNS records are set to "DNS Only." The clouds will appear as "grey" instead of "orange." You configure this under the "DNS" tab in the Cloudflare command console.

Cloudflare DNS only
Cloudflare DNS only

Check Your WordPress Site Settings

Another thing to check is your WordPress site settings. At that place are 2 different fields you lot'll want to ensure are set correctly, and not pointing at a wrong domain or are mismatched. Another mutual mistake is that y'all're not using the right prefix to match the rest of your site, www or non-www. Sometimes people migrate hosts, or change domains and these can get inverse without you realizing it.

  • WordPress Address (URL): The address to attain your blog.
  • Site Address (URL): The address of your WordPress core files.

Both should match unless you are giving WordPress it's own directory.

WordPress address
WordPress address

Almost likely though you aren't able to admission your WordPress dashboard. So what you can do is override the settings above by inputting the values in your wp-config.php file.

The wp-config.php file is typically located at the root of your WordPress site and tin can exist accessed via FTP, SSH, or WP-CLI. To hard-code WP_HOME and WP_SITEURL, simply input the following code towards the top of the file, irresolute the values to reflect your domain.

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

Beneath is an example of what your wp-config.php file might look similar afterward.

change wordpress url wp-config.php
Change WordPress URL in wp-config.php file

Or if yous adopt, here are 2 additional ways you could modify your WordPress URLs without access to your admin dashboard:

  • Change WordPress URL Directly in Database
  • Change WordPress URL With WP-CLI

One time you manually set it, you tin browse to your site to verify whether or non it fixes the redirect loop.

Multisite

If you're changing domains on a multisite, make sure to too bank check the wp_blogs tabular array. We've seen people practice a search and supersede wrong and cause an infinite redirect loop. This is considering the network site doesn't lucifer the subsites.

wp_#_options: Each subsite volition have sets of tables that represent to theblog_id in thewp_blogs table. Become to thewp_#_options tabular array, where # corresponds to theblog_id, and update the "SITEURL" and "HOME" settings in that tabular array.

Temporarily Disable WordPress Plugins

When it comes to WordPress, temporarily disabling all your WordPress plugins can be a quick mode to spot problems. For example, plugins such equally Redirection or Yoast SEO premium let yous implement redirects. Sometimes settings or updates to these plugins can conflict with redirects that might already be set on your server, causing a redirect loop.

Remember, you won't lose any data if you only disable a plugin. About probable yous tin't admission the WordPress admin, so you'll need login via SFTP to your server and rename your plugins folder to something like plugins_old. Then check your site once more.

SFTP rename plugins folder
SFTP rename plugins folder

If information technology works, and so yous volition demand to test each plugin i past ane. Rename your plugin folder dorsum to "plugins" and then rename each plugin folder within of if it, one by one, until yous discover it. You could likewise try to replicate this on a staging site first.

Rename plugin folder
Rename plugin folder

Bank check Redirects on Your Server

Besides HTTP to HTTPS redirects on your server, information technology tin exist good to check and brand sure there aren't any additional redirects setup wrong. For example, one bad 301 redirect back to itself could have down your site. Usually, these are found in your server's config files.

Apache .htaccess file

Kinsta only uses Nginx, but if you lot're using a WordPress host that is running Apache, it could very well be that your.htaccess file has a wrong rule in it. Follow the steps below to recreate a new one from scratch.

First, login to your site via FTP or SSH, and rename your.htaccess file to.htaccess_old. This ensures y'all have a backup.

Rename .htaccess file
Rename .htaccess file

Normally to recreate this file you lot can simply re-save your permalinks in WordPress. Notwithstanding, if you lot're in the center of an ERR_TOO_MANY_REDIRECTS fault y'all about likely can't access your WordPress admin, so this isn't an option. Therefore you tin can create a new.htaccess file and input the post-obit contents. Then upload it to your server. The following uses the default settings.

          # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [50] </IfModule> # Cease WordPress        

Encounter the WordPress Codex for more examples, such equally a default.htaccess file for multisite.

We've taken our knowledge of effective website management at calibration, and turned it into an ebook and video course. Click hither to download the The 2020 Guide to Managing 40+ WordPress Sites!

Nginx Config

If your host uses Nginx, this file can exist a little trickier equally the config file tin can vary a bit depending on the hosting provider. We recommend reaching out to your host and accept them check your config file for anything that might exist causing a redirect loop or too many redirects.

If you're a Kinsta client, you'll offset want to bank check to ensure you lot didn't prepare a redirect wrong in our redirect tool. Beneath is a simple instance of a redirect from https://domain.com/ back to itself, that would crusade a redirect loop.

Bad 301 redirect
Bad 301 redirect

This also commonly happens when the location URL is included in both "Redirect From" and "Redirection To."

For example, the following would crusade a redirect loop:

Redirect From:^/blog/nearRedirect To:https://domain.com/blog/most-me

Why? Because once the procedure reached^/weblog/nigh, the remaining function-me wouldn't affair, and it would cause an infinite loop. You lot have to specify the end of the string and the starter point. Hither is what you lot would do to fix it:

Redirect From:^/blog/well-nigh$Redirect To:https://domain.com/blog/well-nigh-me

The $ character will tell Nginx to stop and lucifer the request but if the string is there exactly, but nothing after it.

And of class, you lot can e'er open a support ticket and nosotros'll check this for y'all.

Misconfigured Contrary Proxies

Another common reason for the ERR_TOO_MANY_REDIRECTS fault is if you are using a reverse proxy. Contrary proxies can exist quite complicated and it'due south very easy to transport your WordPress site into a redirect loop if misconfigured. Again, if you're a Kinsta customer, our back up team can help with this.

Website stuck in an space redirection loop? 🛣 Bank check out these recommendations on how to get dorsum up and running fast. Click to Tweet

Summary

Redirect loops can sometimes be tricky to track downward. But hopefully, some of the troubleshooting steps above assistance yous to resolve your ERR_TOO_MANY_REDIRECTS error. If nosotros missed anything, feel free to allow us know below in the comments.


Save time, costs and maximize site performance with:

  • Instant assistance from WordPress hosting experts, 24/7.
  • Cloudflare Enterprise integration.
  • Global audience accomplish with 35 data centers worldwide.
  • Optimization with our congenital-in Awarding Performance Monitoring.

All of that and much more, in one programme with no long-term contracts, assisted migrations, and a 30-day-coin-dorsum-guarantee. Check out our plans or talk to sales to find the program that's correct for you.