We come across a lot of different errors here at nguyenminhchau.com, 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 WordPress site, a misconfiguration of redirects on your hệ thống, or wrong web1_settings with third-party services. But don’t worry, this error is fairly easy lớn fix.

Bạn đang xem: C#

Chechồng out the recommendations below on how khổng lồ fix this error & get your site back up và running.


The reason for ERR_TOO_MANY_REDIRECTS is pretty much what it sounds lượt thích, something is causing too many redirects, sending your trang web into an infinite redirection loop.

Essentially the site is stuck (such as URL 1 points khổng lồ URL 2 and URL 2 points back khổng lồ URL 1, or the domain has redirected you too many times) and unlike some other errors, these rarely resolve sầu themselves và will probably need you to take action to lớn fix it.

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.


Delete cookie in Chrome

Clear Server, Proxy, & Browser Cache

Due to the fact that redirect loops are responses that can be cached, it’s always recommended to try clearing the cađậy on your WordPress site, the VPS, third-buổi tiệc ngọt proxy services, and even your browser if necessary.

Clear WordPress Site Cache

Depending upon the type of redirect loop, you might still be able lớn gain access khổng lồ your WordPress admin dashboard. In this case, you can easily clear the cabịt within the web1_settings of your caching plugin. Here are a couple of quiông chồng liên kết on how khổng lồ clear WordPress cađậy with popular plugins:

Sign Up For the Newsletter

Want lớn know how we increased our traffic over 1000%?

Join trăng tròn,000+ others who get our weekly web1_newsletter with insider WordPress tips!

Subscribe Now

If you’re a nguyenminhchau.com client, you can easily clear your cabịt from the WordPress admin toolbar.


Clear nguyenminhchau.com cabịt 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 cabịt on your WordPress site.

If you’re a nguyenminhchau.com client, you can manually clear WordPress cabịt from within the Mynguyenminhchau.com dashboard. Simply click on your site, clichồng inkhổng lồ tools, and cliông xã on the “Clear Cache” button. Then kiểm tra your site lớn see if the redirect loop still exists.


Clear WordPress cache

Clear Proxy Cache

If you’re using a third-tiệc nhỏ reverse-proxy service such as Cloudflare or Sucuri, it can also be beneficial khổng lồ clear the cabịt on their side.


To purge Cloudflare cađậy, login to their dashboard, cliông chồng inkhổng lồ “Caching” và cliông chồng on “Purge Everything.”



To purge Sucuri cache, login lớn their dashboard, go to “Performance” và cliông xã on “Clear Cabít.”


Clear Sucuri cache

Clear Browser Cache

If you want khổng lồ check and see if it might be your browser cabít, without clearing your cache, you can always open up your browser in incognikhổng lồ mode. Or test another browser & see if you still see the ERR_TOO_MANY_REDIRECTS error.


xuất hiện Chrome in Incognikhổng lồ mode

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

Determine Nature of Redirect Loop

If clearing the cabịt didn’t work, then you’ll want khổng lồ see if you can determine the nature of the redirect loop. This không lấy phí online Redirect Checker tool can help provide some further analysis into lớn what might be going on. This could also be done via cURL.

For example, on the site below, it has a 301 redirect loop bachồng lớn itself, which is causing a large chain of faulty redirects. You can follow all the redirects & determine whether or not it’s looping back khổng lồ itself, or perhaps is an HTTP.. to HTTPS loop in which we’ll discuss how to solve sầu that further below.


Too many redirects

The Redirect Path Chrome extension can also be very useful & provides insights inkhổng lồ all of the redirects happening on your site (specific URL or page.


Redirect Path extension

Chechồng Your HTTPS Settings

Another thing to check is your HTTPS web1_settings. A lot of times we ‘ve sầu seen ERR_TOO_MANY_REDIRECTS occur when someone has just migrated their WordPress site to lớn HTTPS và either didn’t finish or phối up something incorrectly.


1. Don’t Force HTTPS Without an SSL Certificate

This is by far the most comtháng reason we see on a regular basis. If you force your WordPress site lớn 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 kiểm tra. SSL/TLS certificates require not only your main certificate but also what they Điện thoại tư vấn intermediate certificates (chain) to also be installed. These need to lớn be phối up properly.

We recommover using the không tính phí SSL check tool from Qualys SSL Labs. It is very reliable and we use it for all nguyenminhchau.com clients when verifying certificates. Simply head over to their SSL check tool, input your domain name into lớn the Hostname field và clichồng on “Submit.” You can also select the option lớn hide public results if you prefer. It could take a minute or two to lớn scan your site’s SSL/TLS configuration on your website hệ thống.


SSL test

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

There are some không tính phí SSL WordPress plugins, such as the Really Simple SSL plugin that will help you automatically redirect to HTTPS. However, we don’t recommover this method as a permanent solution because third-tiệc ngọt plugins can always introduce another layer of problems và 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 lớn bởi vì a search và replace in WordPress. If you’re a nguyenminhchau.com client, you can always reach out to our support team lớn vì this for you as well.

3. Cheông xã HTTP. khổng lồ HTTPS Redirects on Server

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

Redirect HTTPhường. khổng lồ HTTPS in Nginx

If your website hệ thống is running Nginx, you can easily redirect all of your HTTP. traffic to HTTPS by adding the following code to lớn your Nginx config file. This is the recommended method for redirecting WordPress running on Nginx.

server listen 80; server_name domain name.com www.tên miền.com; return 301 https://domain name.com$request_uri; We use Nginx for everyone here at nguyenminhchau.com. The great web1_news is that you don’t have sầu to worry about this. If you need lớn add a redirect simply open up a quick tư vấn ticket và let us know which domain name you need lớn be redirected. We then add it khổng lồ the Nginx config for you.

Redirect HTTP to HTTPS in Apache

If your website VPS is running Apađậy, you can easily redirect all of your HTTPhường traffic to lớn HTTPS by adding the following code lớn your .htaccess file. This is the recommended method for redirecting WordPress running on Apache.

RewriteEngine OnRewriteCond %HTTPS offRewriteRule ^(.*)$ https://%HTTP_HOST%REQUEST_URI

4. Cheông chồng For Too Many HTTPS Redirects

Perhaps you simply have sầu too many HTTPS redirects. You can easily kiểm tra your site to see how many redirects it’s using with Patrichồng Sexton’s Redirect mapper tool. Here is an example below of redirects that are not set up correctly which are easily spottable using the redirect mapper. You can see that there are duplicate HTTPS redirects happening on both the www & non-www versions.



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 và you already have an SSL certificate installed with your WordPress host. Why? Because, when flexible is selected, all requests to your hosting hệ thống are sent over HTTP. Your host VPS most likely already has a redirect in place from HTTP lớn HTTPS, & therefore a redirect loop occurs.

Xem thêm: Hướng Dẫn Sử Dụng Google Doc, Cách Sử Dụng Google Tài Liệu Toàn Tập !

To fix this you need to change the Cloudflare Crypto web1_settings from Flexible lớn either Full or Full (strict). If you’re a nguyenminhchau.com client, make sure lớn also kiểm tra out our steps on how to install an SSL certificate while using Cloudflare.


Set Cloudflare cryplớn màn chơi lớn full

You can use their Always Use HTTPS page rule to redirect all web1_users to HTTPS without creating a loop. Another thing to lớn watch out for with Cloudflare is their forwarding URL redirection rules. Be careful not to create a redirect where the domain name points to itself as a destination. This can cause an infinite redirect error, and the affected URLs will not be able to lớn resolve sầu.

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

Using Cloudflare DNS Only

If you only want lớn use Cloudflare’s DNS, & not their proxy/WAF service, then you should make sure your DNS records are phối 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

Cheông chồng Your WordPress Site Settings

Another thing lớn kiểm tra is your WordPress site web1_settings. There are two different fields you’ll want khổng lồ ensure are set correctly, and not pointing at a wrong domain or are mismatched. Another comtháng mistake is that you’re not using the correct prefix khổng lồ match the rest of your site, www or non-www. Sometimes people migrate hosts, or change domains & these can get changed without you realizing it.

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

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


WordPress address

Most likely though you aren’t able to lớn access your WordPress dashboard. So what you can vị is override the web1_settings above sầu 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 & can be accessed via FTPhường., SSH, or WP-CLI. To hard-code WP_HOME & WP_SITEURL, simply input the following code towards the top of the tệp tin, changing the values to reflect your tên miền.

define("WP_HOME","https://yourdomain name.com");define("WP_SITEURL","https://yourdomain name.com");Below is an example of what your wp-config.php file might look lượt thích afterward.


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:

Once you manually phối it, you can browse to lớn your site lớn verify whether or not it fixes the redirect loop.


If you’re changing domains on a multisite, make sure khổng lồ also check the wp_blogs table. We’ve sầu seen people vì chưng a search & 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 sầu sets of tables that correspond khổng lồ the blog_id in the wp_blogs table. Go lớn the wp_#_options table, where # corresponds khổng lồ the blog_id, và update the “SITEURL” and “HOME” web1_settings in that table.

Temporarily Disable WordPress Plugins

When it comes to WordPress, temporarily disabling all your WordPress plugins can be a quick way lớn spot problems. For example, plugins such as Redirection or Yoast SEO premium let you implement redirects. Sometimes web1_settings or updates lớn these plugins can conflict with redirects that might already be set on your hệ thống, causing a redirect loop.

Remember, you won’t thua kém any data if you simply disable a plugin. Most likely you can’t access the WordPress admin, so you’ll need login via SFTPhường lớn your server & rename your plugins thư mục lớn something lượt thích plugins_old. Then kiểm tra your site again.


SFTPhường rename plugins folder

If it works, then you will need khổng lồ kiểm tra each plugin one by one. Rename your plugin folder baông chồng to lớn “plugins” và then rename each plugin thư mục 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

Check Redirects on Your Server

Besides HTTP. lớn HTTPS redirects on your VPS, it can be good to lớn kiểm tra and make sure there aren’t any additional redirects cài đặt wrong. For example, one bad 301 redirect baông xã khổng lồ itself could take down your site. Usually, these are found in your server’s config files.

Apađậy .htaccess file

nguyenminhchau.com only uses Nginx, but if you’re using a WordPress host that is running Apađậy, it could very well be that your .htaccess file has a wrong rule in it. Follow the steps below to lớn recreate a new one from scratch.

First, login lớn your site via FTP or SSH, & rename your .htaccess file to .htaccess_old. This ensures you have sầu a backup.


Rename .htaccess file

Normally khổng lồ recreate this tệp tin 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 và đầu vào the following contents. Then upload it lớn your server. The following uses the mặc định web1_settings.

# BEGIN WordPressRewriteEngine OnRewriteBase /RewriteRule ^index.php$ - RewriteCond %REQUEST_FILENAME !-fRewriteCond %REQUEST_FILENAME !-dRewriteRule . /index.php # END WordPressSee the WordPress Codex for more examples, such as a default .htaccess file for multisite.

We’ve sầu taken our knowledge of effective website management at scale, và turned it into lớn an ebook and video course. Click here khổng lồ download the The 2020 Guide khổng lồ Managing 40+ 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 recommover reaching out khổng lồ your host and have sầu them check your config tệp tin for anything that might be causing a redirect loop or too many redirects.

If you’re a nguyenminhchau.com client, you’ll first want to lớn kiểm tra khổng lồ ensure you didn’t phối up a redirect wrong in our redirect tool. Below is a simple example of a redirect from https://domain.com/ back lớn itself, that would cause a redirect loop.


Bad 301 redirect

This also commonly happens when the location URL is included in both “Redirect From” & “Redirection To.”

For example, the following would cause a redirect loop:

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

Why? Because once the process reached ^/blog/about, the remaining part -me wouldn’t matter, & it would cause an infinite loop. You have sầu to specify the end of the string và the starter point. Here is what you would vì chưng to fix it:

Redirect From: ^/blog/about$ Redirect To: https://tên miền.com/blog/about-me

The $ character will tell Nginx khổng lồ stop và 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 & 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 và it’s very easy to sover your WordPress site inkhổng lồ a redirect loop if misconfigured. Again, if you’re a nguyenminhchau.com client, our support team can help with this.

Website stuchồng in an infinite redirection loop?