Ошибка err too many redirects

What is the ERR_TOO_MANY_REDIRECTS Error? The ERR_TOO_MANY_REDIRECTS is, as the error suggests, caused by too many redirects, resulting in a redirect loop.

We come across a lot of different errors here at Kinsta, and ERR_TOO_MANY_REDIRECTS (also known as a redirect loop) is one we see on a regular basis. Typically this occurs after a recent change on your website, a misconfiguration of redirects on your server, or wrong settings with third-party services. But don’t worry, this error is fairly easy to fix.

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

What is the ERR_TOO_MANY_REDIRECTS Error?

The ERR_TOO_MANY_REDIRECTS error 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 1 points to URL 2 and URL 2 points back to URL 1, or the domain has redirected you too many times) and unlike some other errors, these rarely resolve themselves and will probably need you to take action to fix it.

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

Error Code ERR_TOO_MANY_REDIRECTS
Error Type Browser error/code error
Error Variations This page isn’t working. domain.com redirected you too many times.
The page isn’t redirecting properly
This page isn’t working right now
Safari Can’t Open the Page
Error Causes Misconfigured WordPress settings/plugins
Issues with browser’s cache/cookies.
Issues with third-party services
Bad HTTPS settings
Bad server settings

There are a couple of different variations of this error depending upon the browser you’re running.

Google Chrome

In Google Chrome this error will show as ERR_TOO_MANY_REDIRECTS (as seen below) or This webpage has a redirect loop problem.

This page isn’t working. domain.com redirected you too many times.

ERR_TOO_MANY_REDIRECTS in Google Chrome

ERR_TOO_MANY_REDIRECTS in Google Chrome

(Check out how to fix Chrome’s ERR_CACHE_MISS error).

Mozilla Firefox

In Mozilla Firefox it will show as The page isn’t redirecting properly (as seen below).

An error occured during a connection to domain.com. This problem can sometimes be caused by disabling or refusing to accept cookies.

ERR_TOO_MANY_REDIRECTS in Firefox

ERR_TOO_MANY_REDIRECTS in Mozilla Firefox

Microsoft Edge

In Microsoft Edge, it will simply show as This page isn’t working right 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 as Safari Can’t Open the Page (as seen below).

Too many redirects occurred trying to open “domain.com.” This might occur if you open 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

Why Does ERR_TOO_MANY_REDIRECTS Error Occur?

This error happens when the browser can’t establish a connection between the initial page and the destination page in a redirect. The main causes can be:

  • Misconfigured WordPress settings
  • Misconfigured WordPress plugin.
  • Misconfigured server settings.
  • Incorrect HTTPS settings.
  • Issues with the browser’s cache/cookies.
  • Issues with third-party services (e.g. CDNs).
  • Improper website or domain migration.

So how to fix the ERR_TOO_MANY_REDIRECTS error?

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

  • Delete cookies on that specific site
  • Clear site, server, proxy, and browser cache
  • Determine nature of redirect loop
  • Check your HTTPS settings
  • Check third-party services
  • Check your WordPress site settings
  • Temporarily disable WordPress plugins
  • Check 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 can sometimes contain faulty data in which could cause the ERR_TOO_MANY_REDIRECTS error. This is one recommendation you can try even if you’re encountering the error on a site you don’t own.

Due to the fact that cookies retain your “logged in” status on sites and other settings, we recommend simply 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.

Step 1

In Google Chrome click on the three small dots in the upper right-hand corner. Then click on “Settings.”

Chrome settings

Chrome settings

Step 2

Scroll down and click on “Advanced.”

Chrome advanced settings

Chrome advanced settings

Step 3

Then click on “Content settings.”

Chrome content settings

Chrome content settings

Step 4

Click on “Cookies.”

Chrome cookies

Chrome cookies

Step 5

Then click on “See all cookies and site data.”

Chrome see all cookies

Chrome see all cookies

Step 6

Search for the site (domain) where you are encountering the ERR_TOO_MANY_REDIRECTS error. You can then delete the cookie(s) currently stored on your computer for that domain. Then try visiting the site again.

Delete cookie in Chrome

Delete cookie in Chrome

Clear Server, Proxy, and Browser Cache

Due to the fact that redirect loops are responses that can be cached, it’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 gain access to your WordPress admin dashboard. In this case, you can easily clear the cache within the settings of your caching plugin. Here are a couple of quick links on how to clear WordPress cache with popular plugins:

  • Clear Cache with Cache Enabler
  • Clear Cache with W3 Total Cache
  • Clear Cache with Super Cache

If you’re a Kinsta client, you can easily 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 can’t access WordPress admin, many WordPress hosts have their own control panel tools for clearing the cache on your WordPress site.

If you’re a Kinsta client, you can manually clear WordPress cache from within the MyKinsta dashboard. Simply click on your site, click into tools, and click on the “Clear Cache” button. Then check your site to see if the redirect loop still exists.

Clear WordPress cache

Clear WordPress cache

Clear Proxy Cache

If you’re using a third-party reverse-proxy service such as Cloudflare or Sucuri, it can also 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 cache, login to their dashboard, go to “Performance” and click on “Clear Cache.”

Clear Sucuri cache

Clear Sucuri cache

Clear Browser Cache

If you want to check and see if it might be your browser cache, without clearing your cache, you can always open up your browser in incognito mode. Or test another browser and see if you still see the ERR_TOO_MANY_REDIRECTS error.

Open Chrome in Incognito mode

Open Chrome in Incognito mode

If you determine it is being caused by your browser cache, you can then clear it. Below are instructions on how to do it in various browsers:

  • How to Force Refresh a Single Page for All Browsers
  • How to Clear Browser Cache for Google Chrome
  • How to Clear Browser Cache for Mozilla Firefox
  • How to Clear Browser Cache for Safari
  • How to Clear Browser Cache for Internet Explorer
  • How to Clear Browser Cache for Microsoft Edge
  • How to Clear Browser Cache for Opera

Determine Nature of Redirect Loop

If clearing the cache didn’t work, then you’ll want to see if you can determine the nature of the redirect loop. Our free online Redirect Checker tool can help provide some further analysis into what might be going on. This could also be 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 determine whether or not it’s looping back to itself, or perhaps is an HTTP to HTTPS loop in which we’ll discuss how to solve that further below.

Too many redirects

Too many redirects

The Redirect Path Chrome extension can also 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

Check Your HTTPS Settings

Another thing to check is your HTTPS settings. A lot of times we’ve seen ERR_TOO_MANY_REDIRECTS occur when someone has just migrated their WordPress site to HTTPS and either didn’t finish or set up something incorrectly.

1. 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 first 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 also recommended to run an SSL check. SSL/TLS certificates require not only your main certificate but also what they call intermediate certificates (chain) to also be installed. These need to be set up properly.

We recommend using the free SSL check tool from Qualys SSL Labs. It is very reliable and we use it for all Kinsta clients when verifying certificates. Simply head over to their SSL check 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’s SSL/TLS configuration on your web server.

SSL check

SSL test

2. Don’t Use an SSL Plugin, Update your Hard-coded Links

There are some free SSL WordPress plugins, such as the Really Simple SSL plugin that will help you automatically redirect to HTTPS. However, we don’t recommend this method as a permanent solution because third-party plugins can always introduce another layer of problems and compatibility issues. It’s a good temporary solution, but you should really update your hard-coded HTTP links.

We have a great tutorial with 4 easy ways to do a search and replace in WordPress. If you’re a Kinsta client, you can always reach out to our support team to do this for you 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 can easily redirect all of your HTTP traffic to HTTPS by adding the following code 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 use Nginx for everyone here at Kinsta. The great news is that you don’t have to worry about this. If you need to add a redirect simply open up a quick support ticket and let us know which domain you need to be redirected. We then add it to the Nginx config for you.

Check Out Our Video Guide to Redirects

Redirect HTTP to HTTPS in Apache

If your web server is running Apache, you can easily redirect all of your HTTP traffic to HTTPS by adding the following 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 Too Many HTTPS Redirects

Perhaps you simply have too many HTTPS redirects. You can easily check your site to see how many redirects it’s using with a tool like Redirect Checker. Here is an example below of redirects that are not set up correctly which are easily spottable using an online tool. You can see that there are duplicate HTTPS redirects happening on both the www and non-www versions.

redirects not setup correctly

Redirects

Check Third-Party Services

ERR_TOO_MANY_REDIRECTS is also often commonly caused by reverse-proxy services such as Cloudflare. This usually happens when their Flexible SSL option 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 fix this you need to change the Cloudflare Crypto settings from Flexible to either Full or Full (strict). If you’re a Kinsta client, make sure to also check out our steps on how to install an SSL certificate while using Cloudflare.

Cloudflare full

Set Cloudflare crypto level to full

You can use their Always Use HTTPS page rule to redirect all users to HTTPS without creating a loop. Another thing to watch 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 infinite redirect error, and the affected URLs will not be able to resolve.

If you’re using StackPath, they have an option called “Origin Pull Protocol” that needs to be set to HTTPS only.

Using Cloudflare DNS Only

If you only want to use Cloudflare’s DNS, and not their proxy/WAF service, then you should make 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 control panel.

Cloudflare DNS only

Cloudflare DNS only

Check Your WordPress Site Settings

Another thing to check is your WordPress site settings. There are two different fields you’ll want to ensure are set correctly, and not pointing at a wrong domain or are mismatched. Another common mistake is that you’re not using the correct prefix to match the rest of your site, www or non-www. Sometimes people migrate hosts, or change domains and these can get changed without you realizing it.

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

Both should match unless you are giving WordPress its own directory.

WordPress address

WordPress address

Most likely though you aren’t able to access 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 can be 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, changing the values to reflect your domain.

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

Below is an example of what your wp-config.php file might look like afterward.

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

Or if you prefer, here are two additional ways you could change your WordPress URLs without access to your admin dashboard:

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

Once you manually set it, you can browse to your site to verify whether or not it fixes the redirect loop.

Multisite

If you’re changing domains on a multisite, make sure to also check the wp_blogs table. We’ve seen people do a search and replace wrong and cause an infinite redirect loop. This is because the network site doesn’t match the subsites.

wp_#_options: Each subsite will have sets of tables that correspond to the blog_id in the wp_blogs table. Go to the wp_#_options table, where # corresponds to the blog_id, and update the “SITEURL” and “HOME” settings in that table.

Temporarily Disable WordPress Plugins

When it comes to WordPress, temporarily disabling all your WordPress plugins can be a quick way to spot problems. For example, plugins such as Redirection or Yoast SEO premium let you 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 simply disable a plugin. Most likely you can’t access 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 again.

SFTP rename plugins folder

SFTP rename plugins folder

If it works, then you will need to test each plugin one by one. Rename your plugin folder back to “plugins” and then rename each plugin folder inside of if it, one by one, until you find it. You could also try to replicate this on a staging site first.

Rename plugin folder

Rename plugin folder

Check Redirects on Your Server

Besides HTTP to HTTPS redirects on your server, it can be good to check and make sure there aren’t any additional redirects setup wrong. For example, one bad 301 redirect back to itself could take down your site. Usually, these are found in your server’s config files.

Apache .htaccess file

Kinsta only uses Nginx, but if you’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 you have a backup.

Rename .htaccess file

Rename .htaccess file

Normally to recreate this file you can simply re-save your permalinks in WordPress. However, if you’re in the middle of an ERR_TOO_MANY_REDIRECTS error you most likely can’t access your WordPress admin, so this isn’t an option. Therefore you can create a new .htaccess file and input the following 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 [L]
</IfModule>
# END WordPress

See the WordPress Codex for more examples, such as a default .htaccess file for multisite.

We’ve taken our knowledge of effective website management at scale, and turned it into an ebook and video course. Click to download The Guide to Managing 60+ WordPress Sites!

Nginx Config

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

If you’re a Kinsta client, you’ll first want to check to ensure you didn’t set up a redirect wrong in our redirect tool. Below is a simple example of a redirect from https://domain.com/ back to itself, that would cause 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 cause a redirect loop:

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

Why? Because once the process reached ^/blog/about, the remaining part -me wouldn’t matter, and it would cause an infinite loop. You have to specify the end of the string and the starter point. Here is what you would do to fix it:

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

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

And of course, you can always open up a support ticket and we’ll check this for you.

Misconfigured Reverse Proxies

Another common reason for the ERR_TOO_MANY_REDIRECTS error is if you are using a reverse proxy. Reverse proxies can be quite complicated and it’s very easy to send your WordPress site into a redirect loop if misconfigured. Again, if you’re a Kinsta client, our support team can help with this.

Website stuck in an infinite redirection loop? 🛣 Check out these recommendations on how to get back up and running fast.Click to Tweet

Summary

Redirect loops can sometimes be tricky to track down. But hopefully, some of the troubleshooting steps above help you to resolve your ERR_TOO_MANY_REDIRECTS error. If we missed anything, feel free to let us know below in the comments.


Get all your applications, databases and WordPress sites online and under one roof. Our feature-packed, high-performance cloud platform includes:

  • Easy setup and management in the MyKinsta dashboard
  • 24/7 expert support
  • The best Google Cloud Platform hardware and network, powered by Kubernetes for maximum scalability
  • An enterprise-level Cloudflare integration for speed and security
  • Global audience reach with up to 35 data centers and 275 PoPs worldwide

Test it yourself with $20 off your first month of Application Hosting or Database Hosting. Explore our plans or talk to sales to find your best fit.

We come across a lot of different errors here at Kinsta, and ERR_TOO_MANY_REDIRECTS (also known as a redirect loop) is one we see on a regular basis. Typically this occurs after a recent change on your website, a misconfiguration of redirects on your server, or wrong settings with third-party services. But don’t worry, this error is fairly easy to fix.

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

What is the ERR_TOO_MANY_REDIRECTS Error?

The ERR_TOO_MANY_REDIRECTS error 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 1 points to URL 2 and URL 2 points back to URL 1, or the domain has redirected you too many times) and unlike some other errors, these rarely resolve themselves and will probably need you to take action to fix it.

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

Error Code ERR_TOO_MANY_REDIRECTS
Error Type Browser error/code error
Error Variations This page isn’t working. domain.com redirected you too many times.
The page isn’t redirecting properly
This page isn’t working right now
Safari Can’t Open the Page
Error Causes Misconfigured WordPress settings/plugins
Issues with browser’s cache/cookies.
Issues with third-party services
Bad HTTPS settings
Bad server settings

There are a couple of different variations of this error depending upon the browser you’re running.

Google Chrome

In Google Chrome this error will show as ERR_TOO_MANY_REDIRECTS (as seen below) or This webpage has a redirect loop problem.

This page isn’t working. domain.com redirected you too many times.

ERR_TOO_MANY_REDIRECTS in Google Chrome

ERR_TOO_MANY_REDIRECTS in Google Chrome

(Check out how to fix Chrome’s ERR_CACHE_MISS error).

Mozilla Firefox

In Mozilla Firefox it will show as The page isn’t redirecting properly (as seen below).

An error occured during a connection to domain.com. This problem can sometimes be caused by disabling or refusing to accept cookies.

ERR_TOO_MANY_REDIRECTS in Firefox

ERR_TOO_MANY_REDIRECTS in Mozilla Firefox

Microsoft Edge

In Microsoft Edge, it will simply show as This page isn’t working right 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 as Safari Can’t Open the Page (as seen below).

Too many redirects occurred trying to open “domain.com.” This might occur if you open 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

Why Does ERR_TOO_MANY_REDIRECTS Error Occur?

This error happens when the browser can’t establish a connection between the initial page and the destination page in a redirect. The main causes can be:

  • Misconfigured WordPress settings
  • Misconfigured WordPress plugin.
  • Misconfigured server settings.
  • Incorrect HTTPS settings.
  • Issues with the browser’s cache/cookies.
  • Issues with third-party services (e.g. CDNs).
  • Improper website or domain migration.

So how to fix the ERR_TOO_MANY_REDIRECTS error?

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

  • Delete cookies on that specific site
  • Clear site, server, proxy, and browser cache
  • Determine nature of redirect loop
  • Check your HTTPS settings
  • Check third-party services
  • Check your WordPress site settings
  • Temporarily disable WordPress plugins
  • Check 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 can sometimes contain faulty data in which could cause the ERR_TOO_MANY_REDIRECTS error. This is one recommendation you can try even if you’re encountering the error on a site you don’t own.

Due to the fact that cookies retain your “logged in” status on sites and other settings, we recommend simply 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.

Step 1

In Google Chrome click on the three small dots in the upper right-hand corner. Then click on “Settings.”

Chrome settings

Chrome settings

Step 2

Scroll down and click on “Advanced.”

Chrome advanced settings

Chrome advanced settings

Step 3

Then click on “Content settings.”

Chrome content settings

Chrome content settings

Step 4

Click on “Cookies.”

Chrome cookies

Chrome cookies

Step 5

Then click on “See all cookies and site data.”

Chrome see all cookies

Chrome see all cookies

Step 6

Search for the site (domain) where you are encountering the ERR_TOO_MANY_REDIRECTS error. You can then delete the cookie(s) currently stored on your computer for that domain. Then try visiting the site again.

Delete cookie in Chrome

Delete cookie in Chrome

Clear Server, Proxy, and Browser Cache

Due to the fact that redirect loops are responses that can be cached, it’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 gain access to your WordPress admin dashboard. In this case, you can easily clear the cache within the settings of your caching plugin. Here are a couple of quick links on how to clear WordPress cache with popular plugins:

  • Clear Cache with Cache Enabler
  • Clear Cache with W3 Total Cache
  • Clear Cache with Super Cache

If you’re a Kinsta client, you can easily 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 can’t access WordPress admin, many WordPress hosts have their own control panel tools for clearing the cache on your WordPress site.

If you’re a Kinsta client, you can manually clear WordPress cache from within the MyKinsta dashboard. Simply click on your site, click into tools, and click on the “Clear Cache” button. Then check your site to see if the redirect loop still exists.

Clear WordPress cache

Clear WordPress cache

Clear Proxy Cache

If you’re using a third-party reverse-proxy service such as Cloudflare or Sucuri, it can also 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 cache, login to their dashboard, go to “Performance” and click on “Clear Cache.”

Clear Sucuri cache

Clear Sucuri cache

Clear Browser Cache

If you want to check and see if it might be your browser cache, without clearing your cache, you can always open up your browser in incognito mode. Or test another browser and see if you still see the ERR_TOO_MANY_REDIRECTS error.

Open Chrome in Incognito mode

Open Chrome in Incognito mode

If you determine it is being caused by your browser cache, you can then clear it. Below are instructions on how to do it in various browsers:

  • How to Force Refresh a Single Page for All Browsers
  • How to Clear Browser Cache for Google Chrome
  • How to Clear Browser Cache for Mozilla Firefox
  • How to Clear Browser Cache for Safari
  • How to Clear Browser Cache for Internet Explorer
  • How to Clear Browser Cache for Microsoft Edge
  • How to Clear Browser Cache for Opera

Determine Nature of Redirect Loop

If clearing the cache didn’t work, then you’ll want to see if you can determine the nature of the redirect loop. Our free online Redirect Checker tool can help provide some further analysis into what might be going on. This could also be 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 determine whether or not it’s looping back to itself, or perhaps is an HTTP to HTTPS loop in which we’ll discuss how to solve that further below.

Too many redirects

Too many redirects

The Redirect Path Chrome extension can also 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

Check Your HTTPS Settings

Another thing to check is your HTTPS settings. A lot of times we’ve seen ERR_TOO_MANY_REDIRECTS occur when someone has just migrated their WordPress site to HTTPS and either didn’t finish or set up something incorrectly.

1. 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 first 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 also recommended to run an SSL check. SSL/TLS certificates require not only your main certificate but also what they call intermediate certificates (chain) to also be installed. These need to be set up properly.

We recommend using the free SSL check tool from Qualys SSL Labs. It is very reliable and we use it for all Kinsta clients when verifying certificates. Simply head over to their SSL check 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’s SSL/TLS configuration on your web server.

SSL check

SSL test

2. Don’t Use an SSL Plugin, Update your Hard-coded Links

There are some free SSL WordPress plugins, such as the Really Simple SSL plugin that will help you automatically redirect to HTTPS. However, we don’t recommend this method as a permanent solution because third-party plugins can always introduce another layer of problems and compatibility issues. It’s a good temporary solution, but you should really update your hard-coded HTTP links.

We have a great tutorial with 4 easy ways to do a search and replace in WordPress. If you’re a Kinsta client, you can always reach out to our support team to do this for you 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 can easily redirect all of your HTTP traffic to HTTPS by adding the following code 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 use Nginx for everyone here at Kinsta. The great news is that you don’t have to worry about this. If you need to add a redirect simply open up a quick support ticket and let us know which domain you need to be redirected. We then add it to the Nginx config for you.

Check Out Our Video Guide to Redirects

Redirect HTTP to HTTPS in Apache

If your web server is running Apache, you can easily redirect all of your HTTP traffic to HTTPS by adding the following 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 Too Many HTTPS Redirects

Perhaps you simply have too many HTTPS redirects. You can easily check your site to see how many redirects it’s using with a tool like Redirect Checker. Here is an example below of redirects that are not set up correctly which are easily spottable using an online tool. You can see that there are duplicate HTTPS redirects happening on both the www and non-www versions.

redirects not setup correctly

Redirects

Check Third-Party Services

ERR_TOO_MANY_REDIRECTS is also often commonly caused by reverse-proxy services such as Cloudflare. This usually happens when their Flexible SSL option 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 fix this you need to change the Cloudflare Crypto settings from Flexible to either Full or Full (strict). If you’re a Kinsta client, make sure to also check out our steps on how to install an SSL certificate while using Cloudflare.

Cloudflare full

Set Cloudflare crypto level to full

You can use their Always Use HTTPS page rule to redirect all users to HTTPS without creating a loop. Another thing to watch 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 infinite redirect error, and the affected URLs will not be able to resolve.

If you’re using StackPath, they have an option called “Origin Pull Protocol” that needs to be set to HTTPS only.

Using Cloudflare DNS Only

If you only want to use Cloudflare’s DNS, and not their proxy/WAF service, then you should make 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 control panel.

Cloudflare DNS only

Cloudflare DNS only

Check Your WordPress Site Settings

Another thing to check is your WordPress site settings. There are two different fields you’ll want to ensure are set correctly, and not pointing at a wrong domain or are mismatched. Another common mistake is that you’re not using the correct prefix to match the rest of your site, www or non-www. Sometimes people migrate hosts, or change domains and these can get changed without you realizing it.

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

Both should match unless you are giving WordPress its own directory.

WordPress address

WordPress address

Most likely though you aren’t able to access 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 can be 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, changing the values to reflect your domain.

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

Below is an example of what your wp-config.php file might look like afterward.

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

Or if you prefer, here are two additional ways you could change your WordPress URLs without access to your admin dashboard:

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

Once you manually set it, you can browse to your site to verify whether or not it fixes the redirect loop.

Multisite

If you’re changing domains on a multisite, make sure to also check the wp_blogs table. We’ve seen people do a search and replace wrong and cause an infinite redirect loop. This is because the network site doesn’t match the subsites.

wp_#_options: Each subsite will have sets of tables that correspond to the blog_id in the wp_blogs table. Go to the wp_#_options table, where # corresponds to the blog_id, and update the “SITEURL” and “HOME” settings in that table.

Temporarily Disable WordPress Plugins

When it comes to WordPress, temporarily disabling all your WordPress plugins can be a quick way to spot problems. For example, plugins such as Redirection or Yoast SEO premium let you 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 simply disable a plugin. Most likely you can’t access 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 again.

SFTP rename plugins folder

SFTP rename plugins folder

If it works, then you will need to test each plugin one by one. Rename your plugin folder back to “plugins” and then rename each plugin folder inside of if it, one by one, until you find it. You could also try to replicate this on a staging site first.

Rename plugin folder

Rename plugin folder

Check Redirects on Your Server

Besides HTTP to HTTPS redirects on your server, it can be good to check and make sure there aren’t any additional redirects setup wrong. For example, one bad 301 redirect back to itself could take down your site. Usually, these are found in your server’s config files.

Apache .htaccess file

Kinsta only uses Nginx, but if you’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 you have a backup.

Rename .htaccess file

Rename .htaccess file

Normally to recreate this file you can simply re-save your permalinks in WordPress. However, if you’re in the middle of an ERR_TOO_MANY_REDIRECTS error you most likely can’t access your WordPress admin, so this isn’t an option. Therefore you can create a new .htaccess file and input the following 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 [L]
</IfModule>
# END WordPress

See the WordPress Codex for more examples, such as a default .htaccess file for multisite.

We’ve taken our knowledge of effective website management at scale, and turned it into an ebook and video course. Click to download The Guide to Managing 60+ WordPress Sites!

Nginx Config

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

If you’re a Kinsta client, you’ll first want to check to ensure you didn’t set up a redirect wrong in our redirect tool. Below is a simple example of a redirect from https://domain.com/ back to itself, that would cause 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 cause a redirect loop:

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

Why? Because once the process reached ^/blog/about, the remaining part -me wouldn’t matter, and it would cause an infinite loop. You have to specify the end of the string and the starter point. Here is what you would do to fix it:

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

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

And of course, you can always open up a support ticket and we’ll check this for you.

Misconfigured Reverse Proxies

Another common reason for the ERR_TOO_MANY_REDIRECTS error is if you are using a reverse proxy. Reverse proxies can be quite complicated and it’s very easy to send your WordPress site into a redirect loop if misconfigured. Again, if you’re a Kinsta client, our support team can help with this.

Website stuck in an infinite redirection loop? 🛣 Check out these recommendations on how to get back up and running fast.Click to Tweet

Summary

Redirect loops can sometimes be tricky to track down. But hopefully, some of the troubleshooting steps above help you to resolve your ERR_TOO_MANY_REDIRECTS error. If we missed anything, feel free to let us know below in the comments.


Get all your applications, databases and WordPress sites online and under one roof. Our feature-packed, high-performance cloud platform includes:

  • Easy setup and management in the MyKinsta dashboard
  • 24/7 expert support
  • The best Google Cloud Platform hardware and network, powered by Kubernetes for maximum scalability
  • An enterprise-level Cloudflare integration for speed and security
  • Global audience reach with up to 35 data centers and 275 PoPs worldwide

Test it yourself with $20 off your first month of Application Hosting or Database Hosting. Explore our plans or talk to sales to find your best fit.

Ошибка «Сайт выполнил переадресацию слишком много раз»

Причина возникновения ошибки

Сайт, на который не установлен сертификат безопасности, работает по незащищённому протоколу HTTP. URL такого сайта выглядит так: http://your_site.ru. Чтобы сайт работал по защищённому соединению, нужно приобрести SSL-сертификат. Подробнее о HTTP читайте в статье Для чего необходим SSL-сертификат.

При установке сертификата ваш сайт становится доступен по безопасному протоколу HTTPS и URL выглядит так: https://your_site.ru. Однако одной покупки и установки SSL-сертификата недостаточно. По умолчанию сайт по-прежнему открывается по протоколу HTTP. Чтобы ваш сайт начал работать по HTTPS, необходимо настроить редирект с HTTP на HTTPS.

Вариантов сделать редирект несколько. Всё зависит от платформы, на которой сделан сайт. Проще всего сделать редирект на WordPress с помощью плагинов. Если сайт самописный, редиректы устанавливают через конфигурационные файлы .htaccess или web.config. Также можно использовать инструмент для добавления редиректа в панели управления хостингом. Все перечисленные способы вы можете найти в разделе Редиректы.

Если редирект был сделан неправильно, у пользователя может возникнуть циклическая переадресация, которая приводит к ошибке. Как это происходит? При настройке редиректа вы задаёте перенаправление http://your_site.ru —> https://your_site.ru. Если при этом в CMS или на сайте задан параметр открывать сайт строго по протоколу http, возникает замкнутый цикл: http://your_site.ru —> https://your_site.ru —>http://your_site.ru —> https://your_site.ru>… Сервер фиксирует слишком большое количество переадресаций и выдаёт ошибку ERR_TOO_MANY_REDIRECTS.

Сайт выполнил переадресацию слишком много раз или ERR TOO MANY REDIRECTS: как исправить

Как правило, ошибка переадресации вызвана проблемами на сервере, на котором находится сайт, и исправить её может только владелец ресурса. Однако, если вы пользователь и в течение нескольких дней проблема на сайте сохраняется, вам также стоит выполнить некоторые действия на своём устройстве. Ниже мы расскажем об исправлении ошибки и со стороны владельца и со стороны пользователя.

ERR TOO MANY REDIRECTS: что делать, если я владелец сайта

  1. Подумайте, какие действия вы делали с сайтом за последнее время. Вернитесь к старой версии сайта, – если ошибка пропала, значит, новые настройки были некорректны.
  2. Проверьте настройки HTTPS. Часто ошибка ERR_TOO_MANY_REDIRECTS появляется при неправильной настройке переадресации HTTP на HTTPS. Правильно ли вы настроили редирект, можно проверить по инструкциям:

    • редирект в панели управления ISPmanager, cPanel или Plesk,
    • редирект для сайтов на WordPress.
  3. Проверьте, не влияют ли на работу сайта плагины. Иногда плагины нарушают работу сервера и могут появляться различные ошибки, в том числе и TOO MANY REDIRECTS 310. Отключите по очереди каждый плагин или переименуйте папку plugins в каталоге файлов вашего сайта на любое другое название. Если сайт заработает, удалите плагин-виновник.
  4. Если у вас кириллический домен, проверьте, как в настройках WordPress указан ваш домен. Кириллические домены хоть и удобны в использовании, однако они не соответствуют UNICODE-системе, поэтому для них создали Punycode. Именно в этой форме нужно добавлять название сайта во все настройки. Чтобы перевести кириллический домен в Punycode, используйте конвертер. Например, ваш сайт дачник.ру. В формате Punycode он будет выглядеть xn--80ahnin3d.xn--p1ag.
  5. Ошибка в конфигурационном файле. Каждая CMS имеет собственный конфигурационный файл, который использует индивидуальные правила для перенаправления. Описать все способы исправления этой ошибки невозможно. Вы можете проверить все добавленные правила переадресации и устранить конфликт, обратившись за помощью к разработчикам сайта или на тематические форумы по используемой CMS. Также вам может помочь замена текущего файла .htaccess на стандартный для используемой вами CMS. Если вы используете WordPress или Joomla, можете добавить некоторые записи в конфигурационные записи по одной из инструкций ниже.


Как исправить ошибку в WordPress

Для исправления ошибки в CMS WordPress hosting добавьте в конфигурационный файл wp-config.php, который размещён в корневой директории вашего сайта, строки:

define('FORCE_SSL_ADMIN', true);

if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') 
$_SERVER['HTTPS']='on';

Для решения этой проблемы на VPS и выделенных серверах добавьте в httpd.conf (конфигурационный файл Apache) строку:

SetEnvIfNoCase X-Forwarded-Proto "https" HTTPS=on

Чтобы изменения вступили в силу, перезапустите веб-сервер Apache.


Как исправить ошибку в Joomla

Для исправления ошибки в CMS Joomla в конфигурационный файл .htaccess после строки RewriteEngine On добавьте:

RewriteCond %{HTTP:X-FORWARDED-PROTO} ^https$
RewriteRule .? - [E=HTTPS:on]

Важно

Для успешного исправления ошибки «Сайт выполнил переадресацию слишком много раз» PHP должен работать в режиме FastCGI. Подробнее о режимах работы PHP. На виртуальном хостинге по умолчанию установлен режим PHP FastCGI. На VPS-сервере этот режим также доступен.

Что делать, если я пользователь

  1. Откройте сайт в другом браузере. Если ошибка сохраняется, значит есть проблема с сервером и восстановить доступ к сайту может только владелец. Если сайт загружается, значит проблема со стороны вашего устройства. Выполните шаги описанные ниже.
  2. Очистите cookies и кэш браузера. Временные файлы сохраняют данные посещённых сайтов, чтобы в дальнейшем не тратить время на обращение к серверу, а использовать информацию с устройства. Несмотря на пользу временных файлов, бывает, что они мешают показать новую версию сайта. Если на веб-ресурсе была ошибка и владелец её исправил, пользователь может не увидеть новый вариант. Чтобы браузер обратился к серверу сайта, а не к временным данным, очистите кеш и cookies браузера.
  3. Проверьте расширения в браузере. Они могут влиять на связь браузера и сервера. Отключите недавно установленные расширения. Если сайт заработал, расширение придётся удалить.
  4. Если вы используете VPN, попробуйте зайти на сайт без него. Некоторые сайты ограничивают вход для зарубежных серверов, через которые могут работать сервисы VPN.
  5. Проверьте дату и время на устройстве. Для HTTPS-соединения важно, чтобы дата и время совпадали (хотя бы примерно) с датой и временем на сервере сайта. Если на устройстве время отстаёт или спешит, могут возникать различные ошибки, в том числе и ошибка переадресации.
  6. Если вы попробовали все вышеописанные решения и ничего не изменилось, но вы уверены, что виноват браузер, возможно, ошибка в самой программе. Удалите и заново установите браузер или сбросьте его до базовых настроек.


Как отключить или удалить расширения в браузере Google Chrome

  1. 1.

    В правом верхнем углу нажмите на три точки. В выпадающем списке нажмите Настройки:

  2. 2.

    В левом меню нажмите Расширения:

  3. 3.

    Чтобы отключить расширение, переведите переключатель влево. Если хотите удалить, нажмите Удалить:


    Как отключить или удалить расширения в браузере Google Chrome 3

Чаще всего проблема на стороне владельца ресурса и пользователь может только подождать, пока разработчики исправят ошибку на сервере.

Introduction

Redirection is the forwarding of one URL to another URL. Redirects are useful when moving content from one page to another or changing a website’s permalink structure.

The ERR_TOO_MANY_REDIRECTS error occurs when the browser is redirected to a different URL, which in turn points back to the original one, creating a redirection loop. There are several possible reasons for the error and several available fixes.

In this tutorial, you will learn what causes the ERR_TOO_MANY_REDIRECTS error and how to fix it.

How to troubleshoot the ERR_TOO_MANY_REDIRECTS error.

What Does «Too Many Redirects» Mean?

The ERR_TOO_MANY_REDIRECTS error indicates that the browser is stuck in an infinite redirection loop. An infinite redirection loop happens when you visit a URL pointing to another URL, which points back to the first one.

After several redirects, the browser breaks the redirection loop and displays the «too many redirects» error message. Different browsers warn users about the error in different ways. Most browsers display a «too many redirects» warning and suggest how to fix the error.

Below are several variations of the error, depending on the browser:

Too Many Redirects Chrome

Google Chrome states that the page isn’t working and suggests clearing the cookies might help.

The ERR_TOO_MANY_REDIRECTS error in Google Chrome.

Too Many Redirects Firefox

Firefox explains that the page isn’t redirecting properly and states that cookies might be causing the issue.

The ERR_TOO_MANY_REDIRECTS error in Firefox.

Too Many Redirects Safari

Safari explains it cannot open the page because of too many redirects.

The ERR_TOO_MANY_REDIRECTS error in Safari.

Too Many Redirects Edge

Microsoft Edge states that the domain redirected you too many times and suggests clearing the cookies to fix the issue.

The ERR_TOO_MANY_REDIRECTS error in Microsoft Edge.

Most browsers suggest that cookies might be the reason for the ERR_TOO_MANY_REDIRECTS error. The following section explains this and other possible causes for the error.

There are several possible triggers for the redirection loop. The following list includes the most common causes of a redirection loop in a WordPress website:

  • Issues with the browser’s cache/cookies. The browser may be caching faulty data that leads to the redirection error.
  • The browser extensions. Sometimes a browser extension can cause a redirection error.
  • The website’s URL. A misconfiguration in URL settings can cause the redirection error.
  • WordPress cache. The website cache could be causing a redirect loop.
  • SSL certificate. A misconfigured security protocol (SSL certificate) can cause a redirect loop.
  • Third-party services and plugins. A faulty WordPress plugin could be causing the redirection loop.
  • The site’s .htaccess file. A user-level configuration file WordPress uses to rewrite URLs to the index.php file. The website URL is defined as a value in the database.

How to Fix Too Many Redirects — Troubleshooting

Before fixing the «too many redirects error,» ensure that the page is down for everyone, not just for you. Many online free tools identify redirect loops. Some of the tools are:

  • Redirect Checker
  • HTTP status
  • WhereGoes

The solution to the «too many redirects» error depends on whether you own the website in question or not. If you don’t own the website, follow our instructions below to clear browser cookies and cache, or try accessing the site in incognito mode.

If you are the website owner and get a «too many redirects» error, further actions are available to fix the site’s redirection loop.

Clear Cookies and Cache on Your Browser

Clearing the browser cache and cookies is a quick and straightforward solution worth trying before diving into more complicated troubleshooting.

Clear Cache and Cookies in Chrome

Follow the steps below to clear the cache and cookies on a Chrome browser:

1. In Chrome, press Ctrl + Shift + Delete to open the Clear browsing data window.

2. In the Time range dropdown menu, select All time.

Selecting the time range for clearing browsing data in Chrome.

3. Check the following boxes:

  • Cookies and other site data.
  • Cached images and files.

Uncheck any other boxes.

4. Click the Clear data button to clear the cache.

Clearing the browsing data in Chrome.

5. Revisit the webpage to see if the error is gone.

Clear Cache and Cookies in Firefox

Follow the steps below to clear the cache and cookies on a Firefox browser:

1. In Firefox, press Ctrl + Shift + Delete to open the Clear Recent History window in Firefox.

2. In the Time range to clear dropdown menu, select Everything.

Selecting the time range for clearing browsing data in Firefox.

3. Check the following boxes:

  • Cookies.
  • Cache.

Uncheck any other boxes.

4. Click the OK button to clear the cache and cookies.

Clearing the browsing data in Firefox.

5. Revisit the webpage to see if the error is gone.

Clear Cache and Cookies in Edge

Follow the steps below to clear the cache and cookies on a Microsoft Edge browser:

1. In Edge, press Ctrl + Shift + Delete to open the Clear browsing data window.

2. In the Time range dropdown menu, select All time.

Selecting the time range for clearing browsing data in Edge.

3. Check the following boxes:

  • Cookies and other site data.
  • Cached images and files.

Uncheck any other boxes.

4. Click the Clear now button to clear the cache and cookies and revisit the webpage to see if the error is gone.

Clearing the browsing data in Edge.

Clear Cache and Cookies in Safari

Follow the steps below to clear the cache and cookies on a Safari browser:

1. In Safari, press CMD + , to open the Preferences window.

2. In the Privacy tab, click the Manage Website Data button.

Managing website data in Safari.

3. In the popup window, click the Remove All button to delete all cache and cookies data. Alternatively, find only the cache and cookie data for the website displaying the error and click Remove.

Clearing cookies and cache in Safari.

4. Click Done and revisit the webpage to see if the error is gone.

Check Website in Incognito Without Extensions

Ensure that the extensions the browser is using aren’t causing the error by visiting the website in incognito mode (private browsing). Follow the steps below to enter incognito mode on different browsers:

Incognito Browsing with Chrome

1. Open the Chrome browser and press Ctrl + Shift + N to open a new Incognito instance without browser extensions.

Browsing incognito in Chrome.

2. Visit the website to see if the «too many redirects» error is gone.

InPrivate Browsing with Edge

1. Open Microsoft Edge and press Ctrl + Shift + N to open a new InPrivate instance without extensions.

Browsing incognito in Edge.

2. Visit the website to see if the «too many redirects» error is gone.

Private Browsing with Firefox

1. Open Firefox and press Ctrl + Shift + P to start a new Private instance.

Browsing incognito in Firefox.

2. Visit the website to see if the «too many redirects» error is gone.

Private Browsing with Safari

1. Open a Private window in Safari by pressing CMD + Shift + N.

Browsing incognito in Safari.

2. Visit the website to see if the «too many redirects» error is gone.

Clear Website Cache

If you own the site that’s stuck in a redirect loop and the steps above don’t help, try clearing the cache and cookies in WordPress. Access the WordPress admin dashboard and clear the cache using the caching plugins you have installed.

Note: If you cannot access your WP dashboard, use an FTP client such as FileZilla and empty the contents of the wp-content/cache directory to clear the website cache.

Some of the most popular caching plugins that speed up a WordPress site are WP Rocket and W3 Total Cache. Follow the steps below to clear the cache in the two plugins:

WP Rocket

1. Navigate to the WordPress Admin Dashboard.

2. Hover over Settings and click WP Rocket.

Configuring WP Rocket settings in WordPress.

3. Under Quick Actions, find the Remove all cached files section and click CLEAR CACHE.

Clearing WP Rocket cache in WordPress.

W3 Total Cache

1. Navigate to the WordPress Admin Dashboard.

2. Hover over Performance and click Dashboard.

3. Click Empty All Caches to delete the website cache.

Clearing the cache in W3 Total Cache.

Note: If you are using a different caching plugin, try Googling for instructions on deleting cache from that specific plugin.

Clear Server Cache

If the steps above didn’t resolve the «too many redirects» error, perhaps the issue is incorrect or outdated cache on the server-side.

If you can’t access the WordPress Admin Dashboard, the solution is to use the control panel tools of your WordPress host to clear the cache on the website. Clearing the server cache depends on the hosting provider.

Most WordPress hosts offer one-click solutions for clearing the server cache, so contact your hosting provider for further instructions.

Check All Website Versions

The «too many redirects» error can result from improper WordPress site settings. For example, if the home URL and website URL don’t match, the visitors get stuck in a redirect loop. The two fields can get changed when migrating hosts or changing domains.

To fix mismatched URLs, ensure that both URL fields are set correctly. Follow the steps below:

1. Navigate to the WordPress Admin Dashboard.

2. Click the Settings option and locate the fields labeled WordPress Address (URL) and Site Address (URL).

Configuring site settings in WordPress.

3. Make sure that the two fields are identical, set correctly, and not pointing at a wrong domain. This includes both www, http, and https prefixes.

Note: A common mistake is that the URL fields don’t contain the same prefix as the rest of the site. Make sure to use the correct prefix, www or no www. Also, check for any whitespaces at the URL’s beginning or end.

If the redirect loop denies you access to the WordPress Admin Dashboard, use an FTP client (such as FileZilla) to edit the wp-config.php file and define the URL values manually.

Follow the steps below to edit the wp-config.php file:

Warning: Be careful when modifying the wp-config.php file as it contains information WordPress uses to connect to the database. Always make a backup before saving any changes.

1. In FileZilla or a different FTP client, navigate to public_html directory and look for the wp-config.php file.

2. Right-click the file and select Edit.

3. In the file, add the following lines above the /* That's all, stop editing! Happy publishing. */ line:

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

For https://yoursite.com, enter your site address.

Editing site settings in wp-config.php.

4. Save the modified file and upload it to the website.

5. Reload the site to check if the problem has been solved.

Check SSL

While acquiring an SSL certificate is a smart move that keeps your site secure, not configuring it properly can cause a redirect loop. Using a redirect mapper tool, determine if the HTTPS settings are causing the redirect error.

The tool is similar to the redirect check tools, but it only shows results for www to non-www redirects and http to https redirects. If there are multiple redirects listed between the http and https versions of the site, it might be the source of the redirect loop.

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

Check Plugins

Search for any plugin conflicts on the website. This issue occurs when the code from two plugins, a plugin and a theme, or a plugin and the WordPress core interfere with each other. Start by disabling all the plugins to see if the error message goes away.

Disable the active plugins via the WordPress Admin Dashboard. Follow the steps below:

1. Log in to the WordPress Admin Dashboard.

2. Click Plugins and select Installed Plugins.

3. Check the Select All box to select all plugins.

Selecting all active plugins in WordPress.

4. Choose Deactivate from the Bulk actions dropdown menu and click Apply.

Deactivating all plugins in WordPress to troubleshoot the ERR_TOO_MANY_REDIRECTS error.

If you can’t access the WordPress Admin Dashboard, use an FTP client to disable them. Disable the plugins by renaming the wp-content/plugin directory (e.g., to plugins backup).

If the plugins aren’t causing the «too many redirects» error, follow the steps above to reactivate them.

Check Server Config Files

If the redirect error persists, the last option is to check if the server configuration files are causing the error.

.htaccess

The .htaccess file has a significant role in controlling page redirects, so an issue with the file can cause problems with site loading. If the .htaccess file contains redirects, it could conflict with a code or database configuration, or addresses could be pointing back to one another.

Warning: Take caution when editing the .htaccess file as its configurations affect the web server’s behavior. The file is usually hidden as a precaution, but you can find it in the public_html directory by checking the FTP client’s Show Hidden Files option. Always make a backup before editing the file. Check out our article on mod_rewrite to learn more.

Follow our tutorial to edit or create a new .htaccess file on WordPress, or set up the .htaccess file on Apache.

If creating a new .htaccess file hasn’t solved the redirection error, restore the backup file and try the last fix.

Nginx Config

If your website uses Nginx, the the nginx.conf file contains any redirects and the directives that define how the site runs.

The general syntax for redirecting http to https in the nginx.conf file is:

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

For mydomain.com and www.mydomain.com, enter your site address. The previous server block should define the $server_name variable. Ensure that the redirects are properly set and that they match the rest of the site.

Note: The nginx.conf file can vary depending on the hosting provider. If the settings are different in your configuration file, we recommend reaching out to your host. They can check the file for any misconfigurations that might be causing a redirect loop on the website.

Conclusion

After following the steps outlined in this guide, you should have successfully resolved the ERR_TOO_MANY_REDIRECTS error on your website. Next, read up on 403 Forbidden errors and how to fix them, learn to resolve the «Temporary failure in name resolution» error, or fix the 500 Internal Server Error in WordPress.

При переходе на какую-либо интернет-страницу пользователь может столкнуться с внезапно появившимся в окне браузера сообщением «ERR_TOO_MANY_REDIRECTS», в котором часто указан код ошибки 310 (error 310). Данная ошибка возникает в ситуации, когда браузер оказывается вовлечён в «дурную бесконечность» редиректов (перенаправлений) с одной страницы на другую, с которой он выходит через ошибку 310. Давайте рассмотрим причины возникшей проблемы, и варианты её решения.

Ошибка ERR_TOO_MANY_REDIRECTS

Содержание

  1. Что это значит ERR_TOO_MANY_REDIRECTS?
  2. Как исправить «ERR_TOO_MANY_REDIRECTS»
  3. Действия для пользователя
  4. Действия для веб-мастера
  5. Заключение

Что это значит ERR_TOO_MANY_REDIRECTS?

В большинстве случаев указанная проблема ERR_TOO_MANY_REDIRECTS возникает на браузере Гугл Хром более ранних версий (по словам разработчиков – до 44 версии Хром). В переводе текст сообщения звучит как «Слишком много редиректов», и обычно означает ситуацию, при которой пользовательский браузер переходит на какую-либо страницу, с которой его отправляют на следующую страницу, затем на другую страницу и так далее (или идёт замыкание цикла на уровне «А указывает на Б, а Б указывает на А»).

Картинка DEAD END

Если старые версии браузеров полностью «погружались» в такой цикл на неопределённое время, то современные версии браузеров самостоятельно выходят из такой бесконечности редиректов, сигнализируя об ошибке сообщением «TOO_MANY_REDIRECTS».

Похожими сообщениями об ошибке являются описанные ранее в нашем блоге IT-DOC:

  • ERR_FILE_NOT_FOUND;
  • ERR_NETWORK_CHANGED;
  • 500 Internal Server Error.

Как исправить «ERR_TOO_MANY_REDIRECTS»

Варианты решения данной проблемы я разделю на две основные категории – для пользователя и веб-мастера.

Действия для пользователя

Итак, если вы пользователь, и при переходе на какой-либо сайт встретились с рассматриваемой ошибкой, тогда выполните следующее:

  • Используйте другой браузер. Наиболее эффективным и простым вариантом решения проблемы является задействование другого браузера (к примеру, вместо «Хром» используйте «Мозиллу» или «Edge»). Поскольку проблема наиболее часто проявляется себя именно на Хром, задействование альтернативных веб-навигаторов позволяет избавиться от досадной дисфункции;
  • Очистите кэш (Опера, Хром) и куки вашего браузера. В частности, на Хром это делается переходом в «Настройки», затем в «Дополнительные», там находим и кликаем на «Очистить историю». Определяемся с временным диапазоном очистки (к примеру, «Всё время»), и нажимаем на «Удалить данные»;Окно очистки истории
  • Избавьтесь от нестабильных расширений (дополнений) для вашего браузера. Если проблема проявила себя совсем недавно, и при этом вы недавно установили на ваш браузер какое-либо расширение, рекомендуется отключить (удалить) данное расширение, дабы убедиться, что не оно является фактором возникновения проблемы. В Хром это делается переходом в «Настройки», затем «Дополнительные инструменты», далее «Расширения»;
  • Сбросьте настройки вашего браузера. Для некоторых пользователей эффективным способом борьбы с ошибкой является полный сброс настроек их навигатора. На Гугл Хром это делается переходом в настройки браузера, кликом на «Дополнительные» внизу, а затем вновь в самом низу жмём на «Сбросить»; Опция сброса настроек
    Воспользуйтесь данной опцией для сброса настроек
  • Довольно редкой причиной дисфункции является некорректные дата и время на пользовательском ПК. Проверьте указанные значения, и при необходимости исправьте их (наводим курсор на дату и время внизу справа, жмём правую клавишу мыши, выбираем «Настройка даты и времени»). Опция настроек даты и времени
    При необходимости установите корректные значения времени

Действия для веб-мастера

В случае решении ошибки ERR_TOO_MANY_REDIRECTS для веб-мастеров рекомендуется выполнить следующее:

  • Первым делом рекомендуется проверить файл .htacess. Просмотрите его содержимое на предмет наличия циклов, а также слишком большого количества редиректов. При необходимости откорректируйте содержимое файла, убрав с него лишние циклические значения.
  • Проверьте корректность кода перенаправления на вашей странице. Если вы недавно добавили на какую-либо из ваших страниц код перенаправления, то рекомендуется проверить корректность его значения с целью убедиться, что код написан правильно;
  • Отключите плагины перенаправления. Если в функционале вашего ресурса вы задействовали подобные плагины, попробуйте последовательно отключить их и понаблюдать, не восстановиться ли нормальный функционал вашего сайта;
  • Также фиксировались случаи, что ошибка 310 была вызвана ситуацией, при которой адрес сайта и адрес WordPress были написаны кириллицей, а для стабильной работы заглавной страницы требовалось написание с использованием punycode.

Заключение

Рассматриваемая в статье дисфункция ERR_TOO_MANY_REDIRECTS вызвана как нестабильным функционалом ранних версий браузера Хром, так и некорректными настройками ряда сайтов со стороны разработчиков ресурсов. Выполните перечисленные в данной статье советы, это поможет устранить ошибку 310 на вашем ПК.

Опубликовано 22.12.2017 Обновлено 06.11.2020

Три способа решения ошибки «Сайт выполнил переадресацию слишком много раз»

12.12.2022

Не можете зайти на сайт, потому что браузер выдает сообщение «Страница недоступна. Сайт выполнил переадресацию слишком много раз. Удалите файлы Cookie. ERR_TOO_MANY_REDIRECTS»? Как поступать в такой ситуации и всё-таки открыть нужный сайт?

ошибка "страница недоступна"

Оговорюсь сразу: универсального решения в данном случае не существует, потому что причина ошибки ERR_TOO_MANY_REDIRECTS может быть разная. Однако поделюсь тем, какие действия можно предпринять, чтобы эту ошибку исправить.

Решение 1. Чистим куки

Для начала воспользуемся подсказкой самого браузера и удалим файлы cookie. Но почистим куки не для всех сайтов одним махом, потому что это всё равно что из пушки палить по воробьям, а прицельно только для проблемного сайта. Покажу на примере Google Chrome.

Открываем Настройки браузера -> Конфиденциальность и безопасность -> Файлы cookie и другие данные сайтов.

выбор файлов cookie

На открывшейся страничке выбираем  пункт «Посмотреть все разрешения и данные сайтов».

разрешения сайтов в настройках браузера

Вы увидите список ресурсов интернет, на которые вы когда-либо заходили.  В правом верхнем углу вы найдете поисковое окно.

  1. Наберите в нем домен сайта, который у вас недоступен и выполнил слишком много переадресаций.
  2. Нажмите иконку корзины рядом с названием сайта (поиск происходит автоматически), чтобы очистить для него все сохраненные в браузере cookie.
  3. Перезагрузите браузер

чистка cookie в браузере

Если причина переадресаций и недоступности страница была именно в вашем браузере из-за устаревших cookie, то после описанных действий сайт откроется нормально.

Решение 2. Используем другой браузер

Если чистка куки не помогла, либо вы не хотите возиться с их удалением, есть куда более простой способ решить проблему.

Откройте сайт в любом другом установленном у вас браузере. В 90% случаев он откроется нормально – проверено лично!

смена браузера как способ решения проблемы

Иногда ошибка «Сайт выполнил переадресацию слишком много раз» возникает из-за того, что администратор сайта, на который вы пытаетесь попасть, внес какие-то изменения в конфигурацию сервера (неверное настроил редиректы, криво установил SSL-сертификат и пр.), что обычно приводит к циклическим переадресациям в браузере при попытке попасть на страницу и её недоступности как следствие этого.

При этом что интересно: сайт может нормально открываться в Опере, например, и не открываться в то же самое время в Хроме. Именно поэтому после всех внесенных на сервере изменений работоспособность ресурса надо тестировать во всех популярных браузерах. К сожалению, далеко не все владельцы сайтов придерживаются данного правила, что и приводит зачастую к проблемам.

Если Решение №2 не помогло, и сайт по-прежнему не открывается ни в одном из браузеров, то проблема не на вашей стороне и решить самостоятельно её не получится. В этом случае выходом из ситуации будет сообщить админу или техподдержке сайта о том, что их ресурс недоступен. Также не забудьте сообщить им характер ошибки: ERR_TOO_MANY_REDIRECTS. Администрация внесет нужные правки в конфигурацию сервера, и сайт снова станет доступен.

Расшифровку других ошибок, которые часто выдают сайты при попытке попасть на них через браузер, вы найдете тут: https://webtous.ru/poleznye-sovety/rasprostranennye-oshibki-sajtov-i-ix-znachenie.html

Похожие публикации:

  • Ярлык Microsoft Edge на рабочем столе – почему он появляется и как отключить?
  • Как правильно указать код России в Телеграм
  • Как подать заявление в ЗАГС онлайн через Госуслуги
  • Можно ли включить плагины NPAPI в браузере Хром?
  • 10 способов продлить заряд аккумулятора

Понравилось? Поделитесь с друзьями!

фото автора
Сергей Сандаков, 42 года.
С 2011 г. пишу обзоры полезных онлайн сервисов и сайтов, программ для ПК.
Интересуюсь всем, что происходит в Интернет, и с удовольствием рассказываю об этом своим читателям.

Struggling with the WordPress ERR_TOO_MANY_REDIRECTS message?

person using computer to fix the wordpress ERR_TOO_MANY_REDIRECTS error

This error message can appear in your browser when you try to visit your WordPress site. It’s caused by some type of WordPress redirect problem on your site, which could stem from an issue with your HTTPS settings, plugins, site URLs, or some other issue.

In this guide, you’ll learn how to fix the ERR_TOO_MANY_REDIRECTS message on your WordPress website in six steps. By the end, you should be able to get your WordPress site working again.

Before getting to the troubleshooting steps, though, let’s quickly cover what this error means and why you might be seeing it when you try to access your WordPress site. (Note: For a more general look at this error that goes beyond WordPress, you can also read our full guide to the Too Many Redirects error.)

Grow Your Business With HubSpot's Tools for WordPress Websites

The ERR_TOO_MANY_REDIRECTS message in WordPress means that your WordPress site is causing the visitor’s browser to become stuck in a permanent redirection loop.

A redirect loop occurs when one URL redirects the person to another URL, which redirects the person to another URL … and so on forever. Typically, it results from redirecting back and forth between the same two URLs — for example, the HTTP version of a URL and the HTTPS version of the URL.

Instead of staying stuck in this loop until the end of time, the visitor’s browser will show the ERR_TOO_MANY_REDIRECTS message instead.

WordPress ERR_TOO_MANY_REDIRECTS Message Variations

Depending on the web browser that you’re using, you might see different variations of this error message when you try to access your WordPress site. Here are the common variations:

  • Chrome — The page isn’t working … ERR_TOO_MANY_REDIRECTS
  • Firefox — The page isn’t redirecting properly
  • Microsoft Edge — The page isn’t working right now … ERR_TOO_MANY_REDIRECTS
  • Safari — Safari Can’t Open the Page — Too many redirects occurred trying to open …

All of these different error messages refer to the same thing — a problem with a redirect loop.

What causes WordPress ERR_TOO_MANY_REDIRECTS?

There are two broad types of problems that can cause the WordPress ERR_TOO_MANY_REDIRECTS message:

  1. Issues in your web browser: Problems with your browser cache or your site’s cookies might be causing the issue when you try to visit your WordPress site.
  2. Problems with your WordPress site: issues on your WordPress site itself can also trigger the message as well. These are typically problems with your site’s HTTPS settings, redirects, site URLs, or plugins.

How to Fix WordPress ERR_TOO_MANY_REDIRECTS in WordPress

To fix the WordPress ERR_TOO_MANY_REDIRECTS problem, you’ll first want to rule out any problems in your web browser. Then, if you’re still seeing the error message, you can dig into specific issues on your WordPress site that are causing the problem.

Typically, the most common WordPress-related problems are with HTTPS/SSL certificate configuration (including a CDN like Cloudflare, if you’re using one), WordPress settings, server redirects, or plugins that you’re using.

Before going through these troubleshooting steps, we highly recommend making a backup of your WordPress site. While nothing should go wrong, it’s always good to have a recent backup on hand before doing any troubleshooting work.

Now, let’s go through the steps:

1. Clear Your Browser Cache

When you experience the WordPress ERR_TOO_MANY_REDIRECTS problem, the first thing that you should try is clearing your browser cache.

In order to improve performance, your WordPress site will store some files on your local computer in your browser’s cache. If the local versions of these files become out of date for some reason, that can trigger all kinds of problems, including the ERR_TOO_MANY_REDIRECTS message.

When you clear your browser cache, you force your browser to download new versions of all those files, which might fix the problem without changing anything on your WordPress site itself.

Here’s how to clear the browser cache on Chrome:

  1. Enter the following in your browser address bar — chrome://settings/clearBrowserData
  2. In the Clear browsing data popup, select Cached images and files.
  3. Under Time range, select All time.
  4. Click Clear data.

the clear cache window in google chrome

For guides to other browsers, read our full guide to clearing browser cache in all browsers.

2. Delete Cookies for Your Site

In addition to issues with the browser cache, the WordPress ERR_TOO_MANY_REDIRECTS message can also be triggered by issues with your site’s browser cookies.

WordPress uses cookies to keep you logged in to your WordPress account, along with other uses. If there’s a problem with these cookies, it could cause redirect errors. To check, try clearing cookies for your WordPress site.

While you can clear all of your browser cookies at once, doing so will log you out of every single website. It’s much more convenient to only clear cookies on the site where you’re experiencing issues.

Here’s how to clear cookies for a specific site in Chrome:

  1. Enter the following in your browser address bar — chrome://settings/siteData?search=cookie
  2. Use the search box to search for the WordPress site where you’re experiencing issues.
  3. Click the Remove All Shown button to remove all cookies for the site you searched for.

the clear cookies window in google chrome

For other browsers, read our full guide to clearing cookies in all browsers.

3. Check WordPress Site URLs

Once you’ve ruled out issues in your web browser, it’s time to shift into some WordPress-specific fixes for the WordPress ERR_TOO_MANY_REDIRECTS message.

The first thing to check is issues with your WordPress site URLs, which control what WordPress «thinks» your site’s proper URL should be. If these URLs are incorrect, it can cause WordPress to enter into an indefinite redirect loop.

There are two common situations where this might happen:

  1. You’ve enabled HTTPS on your site, but your WordPress site URLs are still set up to use HTTP. This can trigger an indefinite redirect by bouncing your site between the HTTP and HTTPS versions when you try to visit it.
  2. You recently changed your site’s domain name but your WordPress site URLs are still set to the old domain name. This can trigger an indefinite redirect loop by bouncing your site between the new and old domain name when you try to visit it.

If you can still access your WordPress dashboard, check the site URLs by going to Settings > General.

Make sure that these URLs have the proper domain name and are configured to use HTTPS (if you’ve enabled HTTPS on your site).

In 99% of cases, your WordPress Address and Site Address should be identical.

the general settings page in wordpress for fixing the WordPress ERR_TOO_MANY_REDIRECTS error

If you can’t access your WordPress dashboard, you can also manually control these settings in your site’s wp-config.php file. The settings in the wp-config.php file will always override the settings in the dashboard, so it’s important to remember that you’ve hard-coded your site’s URLs going forward.

To add these settings to the wp-config.php file, you’ll need to connect to your site’s server using an FTP client or a server file manager like cPanel.

Then, edit the wp-config.php file and add the following code to the bottom of the file, making sure to replace the example URLs with your site’s actual URLs:

define(‘WP_HOME’,’https://exampledomain.com’);
define(‘WP_SITEURL’,’https://exampledomain.com’);

Save the file, then check your website to see if the error is resolved.

4. Check WordPress HTTPS Settings and SSL Certificates (Including Cloudflare)

Another common cause of the WordPress ERR_TOO_MANY_REDIRECTS message is a problem with your site’s SSL certificate and/or HTTPS configuration.

Here are the three most common types of HTTPS issues that can trigger the WordPress ERR_TOO_MANY_REDIRECTS message:

  1. Incorrect site URLs: You already fixed this in the previous section, so you can scratch this one off the list.
  2. Faulty HTTPS settings: You might have made a mistake when trying to redirect HTTP traffic to HTTPS or when installing your SSL certificate.
  3. Cloudflare issues: If you’re using Cloudflare on your WordPress site, a misconfiguration in Cloudflare’s SSL settings can trigger the error.

How to Fix Common HTTPS Issues

There are a few WordPress HTTPS issues that can cause the WordPress ERR_TOO_MANY_REDIRECTS message.

First, if you want to use HTTPS on your site, you need to make sure that you’ve installed an SSL certificate first. If you try to use HTTPS without the SSL certificate, that can trigger this message.

You should be able to install an SSL certificate via your hosting dashboard. Reach out to your host’s support if you’re unsure.

Second, when using HTTPS, it’s common to set up a redirect to send all HTTP traffic to the HTTPS version of the content, either by creating your own redirect or using an SSL plugin like Really Simple SSL.

This is a good thing to do, but issues in configuration can trigger the WordPress ERR_TOO_MANY_REDIRECTS message by permanently bouncing visitors between the HTTP and HTTPS versions of a page.

To learn how to do this properly and fix any problems, you can read our full guide on how to force HTTPS on WordPress.

How to Fix Cloudflare SSL Settings

If you’re using Cloudflare, you’ll want to check your Cloudflare SSL settings to make sure that they aren’t triggering this issue.

The most common cause here is having installed an SSL certificate on your WordPress site’s server but still using Cloudflare’s Flexible setting instead of the Full setting.

To check this, open your Cloudflare dashboard and then go to the SSL/TLS settings for the site where you’re experiencing issues.

If you’ve installed an SSL certificate on your server, you should make sure that Cloudflare is configured to use either Full or Full (strict). In most cases, choosing Full is the safest option.

changing SSL encryption settings in cloudflare to resolve the WordPress ERR_TOO_MANY_REDIRECTS Problem

5. Reset .htaccess and Check Server-Level Redirects

If you’ve set up server-level redirects using your WordPress site’s .htaccess file, those could be causing the WordPress ERR_TOO_MANY_REDIRECTS message. Additionally, some plugins might have added their own .htaccess rules that are causing problems.

Note: if your web host uses an Nginx web server instead of Apache or LiteSpeed, then your WordPress site won’t have a .htaccess file. In this case, you’ll manage server-level redirects via the nginx.conf file. However, accessing and using this file is a lot more complex, so we recommend reaching out to your host’s support in these situations.

The simplest fix here is to force WordPress to generate a new, clean .htaccess file. Here’s how:

  1. Connect to your WordPress site’s server using FTP, cPanel File Manager, or a similar tool.
  2. Find the .htaccess file in your site’s root folder (the same folder that contains the wp-admin and wp-content folders).
  3. Download a copy of the .htaccess file to your local computer as a backup (just in case).
  4. Once you’ve downloaded a copy, delete the .htaccess file from your server.

Now, you can try to access your site. If the error has disappeared, you know that something was going wrong in your .htaccess file.

To finish things out, all you need to do is force WordPress to generate a new .htaccess file. Here’s how:

  1. Open your WordPress dashboard.
  2. Go to Settings > Permalinks.
  3. Make sure that the proper permalink structure is selected (it should already be selected, in which case you don’t need to change anything).
  4. Click Save Changes. Even if you don’t change any settings, you still need to click the Save Changes button so that WordPress regenerates the .htaccess file.

changing server level redirects in wordpress to fix the WordPress ERR_TOO_MANY_REDIRECTS Problem

6. Disable WordPress Plugins

WordPress plugins can add all kinds of code to your site, including code that deals with redirects. If something goes wrong with this extra code, that means that plugins can be one source of the WordPress ERR_TOO_MANY_REDIRECTS message.

This could be because of a problem in the plugin itself or it could be because of a compatibility issue with how two otherwise functioning plugins interact with one another.

To check if plugins are the problem, you can try deactivating all of your plugins at the same time. If the error goes away after deactivating all plugins, you know that one or more of your plugins are the cause.

To find the specific culprit, reactivate your plugins one by one until you find the one that triggers the ERR_TOO_MANY_REDIRECTS message.

If you can still access your WordPress dashboard, deactivate all of your plugins from the Plugins menu:

  1. Use the checkbox to select all plugins.
  2. Choose Deactivate from the dropdown.
  3. Click Apply.

the deactivate plugins page in wordpress

If the error is preventing you from accessing your dashboard, you can still disable your plugins using FTP or a tool like cPanel.

Here’s how:

  1. Connect to your WordPress site’s server using FTP, cPanel File Manager, or any other tool that lets you access the files/folders on your server.
  2. Open the wp-content folder and find the plugins folder inside.
  3. Rename the plugins folder to any other name. For example, plugins-deactivate.

When you rename the plugins folder, WordPress will automatically deactivate your plugins.

Now, go to your site and log in to your dashboard if possible. Once you’ve logged in to your dashboard, you can rename the plugins-deactivate folder back to the original plugins folder.

All of your plugins should now appear, but they will be deactivated. You can start reactivating them one by one.

Note: It’s important to visit your site and log in to the WordPress dashboard after initially renaming the plugin folder from plugins to plugins-deactivate. If you don’t access your dashboard, your plugins will automatically reactivate themselves when you change the folder name back to the original. It’s a bit of a quirk, but that’s how it works!

Fix WordPress ERR_TOO_MANY_REDIRECTS for good.

The WordPress ERR_TOO_MANY_REDIRECTS message can be frustrating to deal with. However, with some light troubleshooting, you should be able to figure out what’s going wrong and fix the problem on your site.

To start, make sure to rule out browser issues by clearing your browser cache and cookies. Then, you can move into more WordPress-specific fixes, typically focusing on issues such as site URLs, HTTPS, plugins, and redirects.

Use HubSpot tools on your WordPress website and connect the two platforms  without dealing with code. Click here to learn more.

При просмотре сайтов в Google Chrome, иногда не удается открыть некоторые из них из-за кода ошибки ERR TOO MANY REDIRECTS, который сопровождается сообщением «На этой странице обнаружена циклическая переадресация». Это довольно неприятная ошибка, например, когда нужно срочно получить доступ к содержимому страницы, но это не удается сделать.

Содержание

  • 1 Причины ошибки
  • 2 Удаление кэша и файлов cookie
  • 3 Отключение расширений
  • 4 Проверка системной даты и времени
  • 5 Обновление браузера
  • 6 Удаление несовместимых приложений
  • 7 Удаление из списка блокировки и включение файлов cookie

Причины ошибки

Если сталкиваетесь с кодом ошибки ERR_TOO_MANY_REDIRECTS, скорее всего, Chrome при открытии сайта находит какие-либо несоответствия, и при попытке их обработать переходит в бесконечный цикл переадресаций. Причина может быть как со стороны сервера, так и пользователя. Однако в большинстве случаев может быть исправлена очисткой кэшированных данных, отключением расширений или исправлением системной даты.

Удаление кэша и файлов cookie

Кэш, cookie-файлы и устаревшие данные просмотра (истории) могут содержать поврежденные файлы, которые могут привести к бесконечному циклу переадресаций. Поэтому в первую очередь попробуйте удалить данные просмотра.

Запустите Google Chrome и щелкните на значок с тремя точками в правом верхнем углу окна. При отображении выпадающего меню выберите пункт «Настройки».

На панели слева перейдите в раздел Конфиденциальность и безопасность и щелкните на кнопку «Очистить историю».

На вкладке Дополнительно установите значение временного диапазона на «Все время». Остальные настройки можно оставить по умолчанию или отметьте только поля рядом с cookie-файлами и другими данными сайтов, а также кэшированными изображениями. Затем нажмите на «Удаление данных».

После перезапустите Chrome и попробуйте открыть проблемный сайт. Добавьте https:// перед URL-адресом и нажмите Enter. Если увидите сообщение «Ваше подключение не является приватным», нажмите на кнопку Дополнительно.

Теперь щелкните на ссылку Перейти к «имя сайта»(небезопасно), по которой можете получить к нему доступ.

Отключение расширений

Как известно, некоторые расширения могут повлиять на производительность браузера. Это может привести к разрыву URL-соединений и блокировке доступа к сайту. Поэтому попробуйте отключить все расширения и проверьте, блокируется ли вход на страницу ошибкой ERR_TOO_MANY_REDIRECTS.

Для этого в Chrome откройте основное меню нажатием на значок с тремя вертикальными точками. Затем перейдите в Дополнительные инструменты – Расширения. В окне расширений отключите все по очереди.

Если ошибка больше не препятствует входу на сайты, значит проблема в одном из них. Найдите его поочередным включением расширений, периодически перезапуская браузер и повторяя попытку подключения к странице. При обнаружении, удалите его.

Проверка системной даты и времени

Причиной ошибки ERR_TOO_MANY_REDIRECTS может быть неправильно установленная системная дата и время. Чтобы исправить, выполните указанные шаги.

Откройте панель управления командой control, запущенной из окна Win + R.

В правом верхнем углу переключите просмотр на крупные значки и перейдите в раздел «Дата и время».

На вкладке «Время по Интернету» щелкните на кнопку изменения параметров.

Затем отметьте флажком опцию «Синхронизировать с сервером времени в Интернете». Выберите сервер времени из выпадающего списка и нажмите на кнопку «Обновить сейчас». Кликните на «ОК», чтобы сохранить изменения и вернуться в окно Даты и времени.

Примените настройки, затем кликните на «ОК», чтобы сохранить изменения и выйти.

Теперь попробуйте открыть страницу, которую не удавалось из-за ошибки ERR_TOO_MANY_REDIRECTS.

Обновление браузера

Если по-прежнему не удается открыть страницу из-за обнаруженной циклической переадресации с кодом ERR_TOO_MANY_REDIRECTS, возможно, сильно устарела версия Google Chrome. Рекомендуется постоянно следить за обновлениями и поддерживать браузер в актуальном состоянии.

Снова разверните основное меню и перейдите на вкладку Справка – О браузере Google Chrome.

В открывшемся окне автоматически начнется проверка на наличие последних обновлений. Если они будут обнаружены, браузер автоматически их загрузит и установит.

После завершения обновления перезагрузите Chrome и проверьте. Удалось ли исправить ошибку ERR_TOO_MANY_REDIRECTS.

Удаление несовместимых приложений

Если загружены какие-либо приложения не совместимые с Chrome и больше не поддерживаются браузером, то это может препятствовать соединению по интернет. В этом случае нужно удалить такие приложения из Chrome.

Снова откройте основное меню и выберите Настройки.

На панели слева кликните на кнопку «Дополнительные».

Прокрутите страницу вниз до раздела Сброс настроек и удаление вредоносного ПО, и нажмите на опцию Обновить или удалить несовместимые приложения. Если опция отсутствует, значит система не обнаружила несовместимого программного обеспечения на ПК.

Удаление из списка блокировки и включение файлов cookie

Иногда можем упустить из виду, что cookie могут быть заблокированы. Chrome может считать их вредными и автоматически заблокировать их.

Снова откройте основное меню и перейдите в Настройки.

На панели слева перейдите на вкладку Конфиденциальность и безопасность и щелкните на опцию Настройки сайтов.

Прокрутите страницу вниз до раздела Контент. Щелкните на ссылку Файлы cookie и данные сайта.

В разделе Общие настройки выберите опцию Показать все cookie-файлы.

Теперь на вкладке Все файлы cookie и данные сайтов найдите проблемную страницу. Когда найдете имя проблемного сайта, щелкните на значок корзины, чтобы удалить его.

Теперь перезапустите Chrome и попробуйте получить доступ к сайту, который не открывался из-за ошибки ERR_TOO_MANY_REDIRECTS.

В качестве альтернативы можно быстро обойти проблему путем запуска поиска Google по проблемному сайту и нажатием на значок со стрелкой вниз, затем выберите кэш, чтобы открыть его кэшированную страницу.

Однако, если ни один метод не работает, попробуйте открыть страницу в окне инкогнито.

Друзья! Пламенно приветствую вас в очередной нашей статье, посвященной ошибке браузеров. Простая ошибка для пользователей, но порой запутанная для программистов всех уровней:

ERR_TOO_MANY_REDIRECTS

ERR_TOO_MANY_REDIRECTS

Опознали ошибку у себя? Примерно также? Не знаете как исправить? Тогда предлагаю сразу же приступить к разбору. У этой ошибки есть два разных сценария обнаружения:

  1. Она может встретиться обычному пользователю интернета, который просто хотел открыть какой-то сайт. Таких людей очень много – предлагаю начать именно с них.
  2. Разрешение этой ошибки сейчас ищет другой программист или владелец сайта, после каких-то действий с кодом. Коллег я тоже не забуду, но для них раздел будет чуть ниже основного блока – не поленитесь пролистать до конца.

В любом случае – нашли какое-то свое интересное решение или остались вопросы? У нас всегда открыты комментарии. Пишем, не стесняемся, помогаем людям.

Содержание

  1. Общий раздел – Источники проблемы
  2. Я пользователь – как решить проблему?
  3. Я программист, вебмастер или владелец сайта – как решить проблему?
  4. Задать вопрос автору статьи

Общий раздел – Источники проблемы

Решил вставить здесь этот раздел, т.к. источники появления ошибки на экране по сути одни и те же для всех. Дословный перевод ошибки на русский язык:

ERR_TOO_MANY_REDIRECTS
ОШИБКА_СЛИШКОМ_МНОГО_РЕДИРЕКТОВ

Программисты уже побежали исправлять с полным пониманием, а вот простых пользователей может озадачить слово «Редирект». Редирект – с английского Переадресация. Теперь немного на пальцах про Переадресацию:

  1. Вы посещаете разные сайты.
  2. Иногда неверно вводите адреса.
  3. Чтобы сделать вашу жизнь лучше, сайты переадресовывают вас на «правильные», по их мнению, свои страницы.
  4. Порой с такими переадресациями возникают ошибки.

Главная причина – браузер попал в такую бесконечную переадресацию. Самый частый пример – вы заходите на главную, а главная бесконечно перенаправляет саму на себя. Эти перенаправления по большей части должны разрешаться именно СЕРВЕРОВ, но если их очень много – ваш БРАУЗЕР выкидывает эту ошибку.

Немного стало понятно? Где-то на сайте случилась ошибка, а вы ее поймали. Браузер сам выходит из этого бесконечного цикла.

Другие браузеры, основанные не на Chrome, тоже разрешают эту проблему, но со своими ошибками:

Mozilla Firefox: The page isn’t redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
Microsoft Edge: Hmmm… can’t reach this page.

Я пользователь – как решить проблему?

Этот раздел по устранению посвящается самым простым пользователям, которым нужно здесь и сейчас открыть какой-то сайт. Самое главное:

Как правило, это серверная ошибка. Т.е. вы ничего не можете с ней сделать, кроме как подождать исправления ее программистами того самого сайта, который вы хотели бы открыть.

Т.е. у вас обычно все работает правильно, и браузеры грамотно разрешают ошибки сервера в таком виде. Но если ошибка повторяется и через один-два дня, можно на опережение попробовать следующие быстрые решения:

  • Пробуем открыть через другой браузер. Использовали Google Chrome? Тогда открываем Firefox, Opera, Яндекс.Браузер или даже стандартный Edge. Если и в них проблема сохраняется – значит точно проблема на сервере. Если же они почему-то открывают сайт – значит дело в самом браузере (обычно это или кэш со старого редиректа или интересные расширения).
  • Чистим кэш браузера и куки (ищем в настройках раздел похожий на «Удалить историю», а это наша статья на примере Opera).
  • Стоит посмотреть в сторону установленных расширений браузера. Ставили какие-нибудь VPN, антивирусы и прочую дрянь в браузер? (даже случайно, только честно и для себя, меня обманывать не нужно). На всякий случай идем в Настройки – Дополнительные инструменты – Расширения (на примере Google Chrome, но все браузеры примерно одинаковые) и смотрим на расширения. Нашли что-то подозрительное? Пробуем отключить. Если не уверены в оценке «подозрительности» – отключите ВСЕ расширения и перезапустите браузер. Исчезли редиректы?
  • Если вы точно уверены, что виноват браузер, можно попробовать сделать ему «сброс на заводские настройки». Лично такое проворачивал один раз, но не для этой ошибки. Если глюк был именно в браузере, а не в чужом сайте, кэше или расширении – поможет. На примере Хрома – Настройки – (в самом низу раскрываем все настройки через «Дополнительные») – Восстановление настроек по умолчанию:

Восстановление настроек по умолчанию Google Chrome

Выше перечислены все основные советы, на которые я бы вообще обращал внимание. Есть другие редкие случаи (вроде настройки даты-времени), но в 99% случаев оно бесполезно. Если другие сайты открываются нормально – значит просто ждите исправления ошибок программистами. А интересующимся, что они будут делать на своей стороне – можете посмотреть ниже.

Я программист, вебмастер или владелец сайта – как решить проблему?

Ну что коллеги, добро пожаловать в этот раздел! За более чем 10 лет практики разработки сам пару раз падал в бесконечный цикл. Причем это было и на каких-то своих костыльных решениях, так и на WordPress. Методика поиска примерно одинаковая:

  • После чего появилась ошибка? Что-то подключили? Что-то выкатили? Что-то изменили? Попробуйте сделать обратный ход. Да, решения здесь не может быть – мало ли что и куда подключается. Этот пункт я вынес сюда первым не для того, чтобы вдаваться в философию, а чтобы выявить действительно интересные ошибки – их рекомендую писать в комментарии. На своей памяти еще на Joomla5 устанавливал компонент галереи, она по итогу конфликтовала в общем цикле и пыталась нагло редиректить. Удалил, исправлять не стал.
  • Настоящие первый пункт – если вы на Apache – смотрим .htaccess (причем в корне, а иногда и в конкретной папке компонента-модуля-плагина, если есть). В основном все ошибки редиректа сейчас и заканчиваются в .htaccess. Сейчас в моде делать редиректы http-https/www-без_www. Самый рабочий пример – вы с index.php делаете редирект на главную («/»), а по итогу главная видится как index.php и снова подключает это правило. Например, вот это может вызывать такой бесконечный редирект (а может и не выдаст, индивидуально, я лишь даю направления, для профилактики удалите все или возьмите дефолтный конфиг):

RewriteCond %{REQUEST_URI} /index.php
RewriteRule ^(.*)$ https://yoursite.com/? [R=301,L]

  • Для сторонников Nginx (да, это и мы) – с одной стороны проще из-за явных правил редиректов, с другой стороны та же ISP-панель или ее аналоги любят залазить в конфиги и вносить свои правки. Рекомендация – лезть в конфиги Nginx (главный, по хостам, директория самого сайта при включении из основного конфига) и смотреть их.
  • Если вываливается при подключении чего-то внешнего – делаем поиск по всем файлам этого «чего-то» на предмет «Location» (я на языке PHP по привычке, так как именно Location и делает редиректы) – нет ли зацикливаний? Попробовать понять и закомментировать.
  • Не из моего опыта, но вполне интересная ошибка для кириллических доменов вида САЙТ.РФ – некоторые вебмастера думают, что это обычные UNICODE-символы, но на самом деле их нужно конвертировать в Punycode (САЙТ.РФ = xn--80aswg.xn--p1ai). Так вот при неверной кодировке WordPress одно время выкидывал бесконечный редирект. Но это уже задачки из уровня конкретной узкой нечастой проблемы.

Итого основные мероприятия для вебмастеров (особенно начинающих): проверяем .htaccess и временно отключаем ВСЕ плагины (при наличии таковых).

Очень надеюсь, что эту ошибку вы не получили уже на рабочем сервере. Но тогда есть вариант использовать любые сервисы проверки редиректов (гуглим «redirect test», «redirect checker» или «проверка редиректов») – попадете на сторонние сайты, которые покажут, куда вообще ваш сайт совершает редирект и с каким статусом (а то может цикл гораздо сложнее). Авось тоже поможет. С разовыми запросами неплохо справляется и Яндекс.Вебмастер (Инструменты – Проверка ответа сервера) – тоже даст ответ сервера, из которого уже можно вытащить и страницу редиректа, и статус. Такой анализ может выявить и сложные многоэтапные циклы, и неверную отработку тех же внешних CDN (я про Cloudflare и SSL, где нужно включать не Flexible SSL, а FULL, т.к. иначе будет цикл редиректов HTTPS – HTTP- HTTPS и т.д.).

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Ошибка err timed out как исправить на телефоне
  • Ошибка err quic protocol error
  • Ошибка err no launcher gta 5 как исправить
  • Ошибка err network changed как исправить
  • Ошибка err name not resolved на андроид как исправить

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии