How to fix the ERR_TOO_MANY_REDIRECTS error

Procédure

What is the ERR_TOO_MANY_REDIRECTS error?

It is very common to see the ERR_TOO_MANY_REDIRECTS error when visiting a Wordpress site.
This error indicates that you currently have a redirect loop on your website, which is blocking the display of the site.
This happens mainly when your site redirects from a first URL to a second, which in turn redirects to the first. However, this error is relatively simple to repair.

Delete the cookies on the site concerned

When you get this error on Google or FileZilla, the browser will first ask you to delete the cookies and then retest the operation of your website. Since cookies allow you to remain connected to certain websites, we recommend that you simply delete the cookie from the site causing the problem.

1. On Google Chrome, click on the three small dots at the top right of the page and then click on"Settings".

How to fix the ERR_TOO_MANY_REDIRECTS error

2. Scroll down your page and click on"Advanced Settings".

How to fix the ERR_TOO_MANY_REDIRECTS error

3. Click on the"Content settings" tab.

How to fix the ERR_TOO_MANY_REDIRECTS error

4. Click on"Cookies".

How to fix the ERR_TOO_MANY_REDIRECTS error

5. Then click on"Show all cookies and site data".

How to fix the ERR_TOO_MANY_REDIRECTS error

6. Then find the site where you have the error, click on the recycle bin behind it to delete the cookies.

How to fix the ERR_TOO_MANY_REDIRECTS error

How do I empty the Wordpress cache?

This depends on the type of loop. It is highly likely that despite the redirection loop, you will still have access to your Wordpress dashboard. In this case, if you have a plugin such as WP Super Cache or WP Rocket, you canclear your website's cache. To do this, log in to your Wordpress Dashboard and click on the"Clear cache" button at the top of your website.

How do I clear Cloudflare's cache?

1. To clear Cloudflare's cache, connect to your Cloudflare dashboard, click on the domain name concerned and then on"Caching".

How to fix the ERR_TOO_MANY_REDIRECTS error

2. Click the "Purge Everything" button to purge the entire Cloudflare cache.

How to fix the ERR_TOO_MANY_REDIRECTS error

How can I determine the nature of the redirect loop?

If, despite this, you still encounter a problem and this error, it is advisable to determine the nature of your redirect loop. A free online tool such as redirect-checker will enable you to check this. To do this, enter the URL of the site concerned and click on the"Analyse" button.

How to fix the ERR_TOO_MANY_REDIRECTS error

Chrome has a"Redirect Path" extension that lets you perform the same analysis as redirect-checker.

How to fix the ERR_TOO_MANY_REDIRECTS error

How do you check your HTTPS settings on LWS?

It is highly likely that the redirect loop is due to a faulty .htaccess file. The first step is to check that the .htaccess file is not the cause. To do this, simply rename it to htaccess.txt in order to deactivate it.

This is also very often due to a problem with the settings for redirection to the HTTPS website. In fact, if you force SSL on your Wordpress site when no certificate is installed on your web hosting, it is highly likely that you will instantly launch a redirection mouth. If this is the cause of the problem, simply install the SSL certificate via your customer area and wait 15 to 20 minutes for it to be installed.

You may also have activated SSL redirection via your customer area. To check this, log in to your customer area.

How to fix the ERR_TOO_MANY_REDIRECTS error

Click on"Manage" behind the problem domain name.

How to fix the ERR_TOO_MANY_REDIRECTS error

Click on the"SSL" button in the"Security" section.

How to fix the ERR_TOO_MANY_REDIRECTS error

If"HTTPS SSL Redirection" is set to"Enable", change it to"Disable" and click"Validate".

How to fix the ERR_TOO_MANY_REDIRECTS error

How do I check my HTTPS settings on Cloudflare?

However, this error may also be due to a third-party service such as Cloudflare. This mainly occurs when SSL is active with their service with the"Flexible" option when you have already installed an initial SSL certificate on your web hosting. The reason for this is simple. When you select Flexible on Cloudflare, all requests will be sent in HTTP to your host server , which already has a redirection to HTTPS. As a result, you will inevitably create a redirection loop.

To avoid this kind of problem, you need to change the settings on Cloudflare to"Full" or"Full (Strict)".

How to fix the ERR_TOO_MANY_REDIRECTS error

How do you check the settings on your Wordpress site?

One of the last things to check is that the URLs shown on your Wordpress dashboard are the correct ones. Make sure that the two URLs are identical and point to a valid domain name. To do this, go to your Wordpress dashboard, click on"Settings" and then on"General".

How to fix the ERR_TOO_MANY_REDIRECTS error

The"Wordpress web address" and"Site web address" must be the same.

How to fix the ERR_TOO_MANY_REDIRECTS error

If you are unable to access your dashboard, you can change the above settings by entering two lines of code in the wp-config.php file on your Wordpress site. This file is located on your FTP space, at the root of your website. To do this, simply enter these lines of code at the top of your file, below the first PHP tag.

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

Once you've added these two lines, you can check how your website works.

Conclusion

You now know what the TOO_MANY_REDIRECTS error is and you can fix it on your Web hosting with LWS. As you have seen, this error may be the cause of certain configurations on your Wordpress site.

Don't hesitate to share your comments and questions.

Rate this article :

2.5/5 | 2 opinion

This article was useful to you ?

Article utileYes

Article non utileNo

Vous souhaitez nous laisser un commentaire concernant cet article ?

Si cela concerne une erreur dans la documentation ou un manque d'informations, n'hésitez pas à nous en faire part depuis le formulaire.

Pour toute question non liée à cette documentation ou problème technique sur l'un de vos services, contactez le support commercial ou le support technique

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

1mn reading

How does Yoast SEO work?

4mn reading

How can you optimise your Wordpress site?

1mn reading

How do I use Gutenberg on Wordpress?

2mn reading

How do I disable the Gutenberg editor on Wordpress?


Ask the LWS team and its community a question