WordPress redirected you too many times

New Page

How to Fix “Too Many Redirects” Error in WordPress (13 Methods)

  • Tutorials
  • WordPress

October 19, 2021 By Jason Cosper

Thumbnail of How to Fix "Too Many Redirects" Error in WordPress (13 Methods)

The redirection of the URL must be carried out on the pages and cambiado sus direcciones de forma permanent o temporal. Without embargo, with this web site you may have attacked in a loop of redirection. If this is the case, you may encounter a “demasiados redireccionamientos” error that prevents you from accessing the web pages.

Malheureusement, you can use various methods to fix this redirect problem. The problem usually lies with your website, browser, server, or third-party plug-ins or programs. If you take the time to diagnose the cause de l’erreur, you can resolve it relatively quickly.

Dans cet article, we will see the common causes of the “too many redirects” error in WordPress and how to fix them. We will also explain how to prevent the problem from happening again in the future. Let us begin !

What causes the error “Too many redirects” on WordPress

The “too many redirects” error occurs when the WordPress website gets stuck in the redirect loops. For example, you may intend to send it to another URL that points to a completely different link. If this process continues, it is possible that your browser triggered the error and could not load the site.

Este error se ve different según el navegador que use. For example, in Google Chrome it is usually muestra like “ERR_TOO_MANY_REDIRECTS” or “This web page is linked to a redirect button”.

The "dasiadas redirections" error in Google Chrome. 

If you use Mozilla Firefox, the error usually reads as “The page isn’t redirecting properly.” Alternatively, it displays as “This page isn’t working right now” in Microsoft Edge. Finally, Safari users may encounter “Safari Can’t Open the Page.”

Unlike some other common WordPress errors, the “too many redirects” issue doesn’t usually solve itself. As such, you’ll need to troubleshoot the origins of the problem to fix it.

Skip the Stress

Avoid troubleshooting when you sign up for DreamPress. Our friendly WordPress experts are available 24/7 to help solve website problems — big or small.

Check Out Plans

CTA-dreampress-1 How to Fix the “Too Many Redirects” Error in WordPress (13 Methods)

Various factors can cause the  “too many redirects” error in WordPress. Therefore, you may need to try a few different methods to solve it. Let’s take a look at a comprehensive list of all the possible solutions.

1. Force the Page to Refresh

The first solution is a very simple one. You can force your browser to refresh and retrieve a new version of the page. This method overrides any stored data and displays the latest information available for the WordPress website.

You might like to try this method first because it’s quick and won’t interfere with any other strategies. You’ll also know straight away if it has fixed the problem or not.

You can use the following keyboard shortcuts to force a refresh in your browser:

  • Google Chrome (Windows): Ctrl + F5
  • Google Chrome (Mac): Command + Shift + R
  • Safari: Command + Option + R
  • Firefox (Windows): Ctrl + F5
  • Firefox (Mac): Command + Shift + R
  • Microsoft Edge: Ctrl + F5

That’s all you need to do. However, if this simple method doesn’t work, you can continue through the troubleshooting guide.

2. Delete Cookies on the Site

Cookies are small blocks of data that enable websites to remember information about your visit. Then, the sites use that data to customize your experiences.

For example, an e-commerce platform might send you on-site recommendations based on your previous purchases and searches. This way, you’ll be able to save time when looking for related products.

However, cookies can sometimes hold onto incorrect data. In turn, this can cause the “too many redirects” error. As such, you can try deleting cookies from the WordPress site.

In Google Chrome, navigate to the three dots at the top of your menu. Then, click on Settings.

Go to Google Chrome configuration.

Scroll down to Privacy and security and select Cookies and other site data.

Find cookies and other site data in Google Chrome.

Move down the page and select See all cookies and site data. This will open a list of all the cookies that different sites hold with your data.

A list of cookies in a Google Chrome browser.

Scroll down to find the site that is throwing the “too many redirects” error. Then, click on the trashcan icon next to its corresponding cookie to delete it.

There is a slightly different method if you’re using Safari, Microsoft Edge, or Firefox. Once you’re done, try refreshing the WordPress site to see if the error is fixed.

Relacionado: Las 10 configuraciones de WordPress más importantes para configurar en su nuevo sitio web

3. Clear Your WordPress Site or Server Cache

La mise en cache stocke des informations sur votre site afin qu’il puisse se charger plus rapidement la prochaine fois que vous y accéderez. Cependant, votre cache peut contenir des données obsolètes et provoquer une erreur de redirection. Par conséquent, vous pouvez essayer d’effacer les informations stockées pour voir si cela résout le problème.

Si vous pouvez accéder à votre site WordPress, vous pouvez essayer de vider le cache avec un plugin de mise en cache dédié. Par exemple, vous pouvez utiliser WP Super Cache.

The WP Super Cache plugin. 

Cependant, l’erreur de redirection vous empêchera probablement d’accéder à votre tableau de bord. Par conséquent, vous devrez peut-être essayer de vider le cache de votre serveur.

If you are a DreamPress customer and have a shell account, you will need to log in to your domain using Secure Shell (SSH). Then you can enter the following code to purge your cache:

curl -X PURGE “http://yourwebsite.com/.*”; clear wp cache

Alternatively, you can use the following command if you are not using the WP Super Cache plugin:

wp disappear purge –wildcard

Once you’ve cleared the cache, try reloading your site. If that doesn’t work, you may need to try another method.

Related: How to Implement Caching on Your WordPress Website

4. Clear your browser cache

Votre navigateur stocke également des informations en cache sur les sites Web que vous visitez, y compris les vôtres. Si votre navigateur conserve des données obsolètes, vous devrez peut-être les effacer pour corriger l’erreur de redirection dans WordPress.

Si vous travaillez avec Chrome, vous pouvez revenir à Paramètres et faire défiler jusqu’à Confidentialité et sécurité. Ici, cliquez sur Effacer les données de navigation.

Clear browsing data in Google Chrome.

Cela fera apparaître une nouvelle fenêtre qui vous permettra de choisir les données que vous souhaitez supprimer. Sélectionnez chaque élément en cochant la case à côté puis cliquez sur Effacer les données.

Wipe data in Google Chrome.

You’ll need to use slightly different methods if you’re working with a different browser. When you’re done, try reloading your site to see if the “too many redirects” error has gone.

5. Determine the Cause of the Redirect Loop

If the earlier methods didn’t solve the redirection error, you might like to try to diagnose the problem. Otherwise, you might spend a lot of effort on more time-consuming strategies that may not fix the error.

There are a couple of different methods that can determine the cause of redirect loops. Firstly, you can enter your site’s URL into the Redirect Checker tool.

The Redirect Checker tool from httpstatus. 

This free online application enables you to enter multiple URLs and check their statuses. You can also specify the user agent, such as your browser, search engine bots, and mobile devices.

Once you enter your URL, you’ll be able to see any status or error codes associated with your site at the bottom of the page.

Status codes associated with the DreamHost URL. 

Alternatively, some browser add-ons can show you the nature of redirects on different sites. For example, the Redirect Path Chrome extension flags redirect error messages in real-time.

The Redirect Path Chrome extension.

However, these tools might not always tell you why your redirect error is happening. If this is the case, you can continue with the other strategies in this troubleshooting guide.

6. Temporarily Disable Your WordPress Plugins

WordPress plugins are helpful tools that can introduce new functionalities to your website. However, these add-ons can also cause many issues, such as the “too many redirects” error.

Anyone can develop and share WordPress plugins. As such, you may accidentally download one that contains faulty code. These add-ons also have frequent updates. If you haven’t updated your plugins, they may also be causing problems on your site.

You may like to try this method if you recently added new plugins to your WordPress site. If so, you’ll probably have a good idea of the one causing the problem. Even if you don’t suspect a particular plugin, you can use the following steps to address the issue.

If you can’t access your WordPress site, you’ll need to access the plugin files via a Secure File Transfer Protocol (SFTP) application such as WinSCP.

The WinSCP SFTP client.

Once you’ve connected the SFTP client to your site, you’ll need to find the folder that holds your plugins. You’ll usually find it under wp-content > plugins. Here, you’ll see a series of folders with the names of your installed plugins.

Plugin folders for WordPress sites.

Rename the plugins folder to “plugins-off”. This will deactivate all of your plugins. You should now be able to access your WordPress dashboard.

Next, rename your plugins folder to its original title. Then go through the process of reactivating each add-on from your WordPress dashboard to see which one throws the “too many redirects” error.

If you find a problem plugin, you’ll need to keep it deactivated. You’ll also need to find an alternative option for your website.

7. Check Your WordPress Site Settings

Sometimes an error in your WordPress site settings can cause redirect loops. For example, your website might be pointing to the wrong domain name for your site files. This more commonly happens if you’ve recently migrated your website.

You can check your site settings in your WordPress dashboard. If you can access it, log in and head to Settings > General. You’ll then see two fields for WordPress Address (URL) and Site Address (URL).

Accessing URL settings in WordPress.

These two addresses should be identical unless you want WordPress to have its own directory. If the URLs don’t match, and they should, you can change the settings manually. You’ll need to edit your site’s wp-config.php file.

Access your website using SFTP as you did previously. Then, locate and open the wp-config.php file in a text editor.

Next, you’re going to paste the following code into the file:

define( ‘WP_HOME’, ‘http://example.com’ ); define( ‘WP_SITEURL’, ‘http://example.com’ );

Replace the sample URLs with the correct URLs and save the file. Then reload your website and see if that fixed the problem.

8. Check your SSL certificate

Si vous avez récemment migré votre site vers HTTPS, vous devez suivre différentes étapes. Malheureusement, si vous manquez certains d’entre eux ou si vous configurez mal certains paramètres, vous pourriez déclencher l’erreur “trop ​​de redirections” dans WordPress.

Par exemple, si vous n’avez pas installé correctement votre certificat SSL (Secure Sockets Layer), cela pourrait causer des problèmes. Si vous ne l’ajoutiez pas du tout, votre site serait automatiquement bloqué dans une boucle de redirection.

However, there might also be some minor issues with your SSL certificate installation. For example, you might have incorrectly installed the intermediate certificates that work together with your main one.

You can check if your SSL certificate is correctly installed using a tool such as the Qualys SSL Server Test.

The SSL Server Test from Qualys.

This application scans your domain to find any associated SSL issues. This process can take a few minutes, but it will alert you to any problems with your certificate installation.

9. Update Your Hard-Coded Links

If you’ve just switched from HTTP to HTTPS, you’ll need to redirect your links. Otherwise, these URLs will point to locations that no longer exist on your website.

Many users utilize plugins that can change these links automatically. For example, you could use Better Find and Replace.

The Better Find and Replace plugin.

However, it can be risky to use an add-on. If your chosen plugin has any issues with its code or updates, it can misconfigure your redirects and trigger the “too many redirects” error.

As such, we recommend that you manually update your hard-coded links. You can do this with the search and replace method in WordPress.

We have a complete guide on how to change your WordPress URLs. If you’re a DreamHost customer, you can also reach out to our technical support team for assistance.

10. Check for HTTPS Redirects on Your Server

HTTPS redirect server rules can also cause the “too many redirects” error in WordPress. These settings may have been misconfigured when you migrated your site.

For example, the settings may not be correctly redirecting your links to HTTPS. As such, you’ll need to amend them.

If your host uses an Apache server, you will need to edit your .htaccess file. Locate it in your SFTP client and open the file in a text editor. Then you can enter the following code:

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

This code will automatically redirect all HTTP links to HTTPS. Save the .htaccess file and try to reload your WordPress site. If this still triggers the redirect error, you will have to try another solution.

Alternatively, you can adjust your HTTPS redirects on Nginx servers. If you’re not sure what type of server your host is using, you can check with the company first.

In Nginx you will need to adjust the configuration file. Open it with your SFTP client as usual, then locate the file. Insert the following code to configure your redirects:

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

Enregistrez le fichier et rechargez votre site WordPress. Si cela ne résout pas le problème, continuez à parcourir ce guide de dépannage.

11. Vérifiez vos paramètres de service tiers

Supposons que vous utilisiez un service tiers tel qu’un réseau de diffusion de contenu (CDN). Dans ce cas, ses paramètres peuvent provoquer l’erreur “trop ​​de redirections”. Par exemple, Cloudflare est une option populaire qui peut améliorer les performances et la sécurité de votre site Web.

The Cloudflare Content Delivery Network (CDN).

Cloudflare peut déclencher l’erreur «trop de redirections» si vous avez activé le paramètre SSL flexible et un certificat SSL d’une autre source (comme votre fournisseur d’hébergement).

In this scenario, your hosting server requests are already redirecting URLs from HTTP to HTTPS. However, with the Flexible SSL setting, all server requests are being sent in HTTP. As such, there are redirection loops happening between the different processes.

As such, we don’t recommend using the Flexible SSL setting if you have an SSL certificate from a third-party source. Instead, change your Cloudflare Crypto settings and choose either Full or Full (strict). Doing so will automatically send requests in HTTPS.

Additionally, you may like to enable the Always Use HTTPS rule in Cloudflare. This forces your site to send all requests in HTTPS. Therefore, it avoids causing a redirect loop and triggering the WordPress error.

Finally, you might like to double-check that you’ve correctly configured your redirects in Cloudflare. For example, you’ll want to ensure that your domain doesn’t redirect to itself. Otherwise, it can trigger a redirect error.

12. Check Redirects on Your Server

We already covered how to check for HTTPS redirects on your server. However, other redirects can trigger an error when loading your WordPress website.

For example, you might have a 301 redirect misconfigured. It might be pointing to the original link, triggering a redirect loop that prevents your site from loading. You can usually find redirects such as this one by checking your config files.

If your host uses an Apache server, you may have issues with your .htaccess file. We recommend creating a new one with default settings.

First, you will need to access your site via SFTP. Find the .htaccess file and save a copy in case you make a mistake. You can do this by renaming it to something like “.htaccess_old”.

Next, you will need to create a new .htaccess file. Insert the following code into it to set the defaults:

# COMMENCEZ WordPress RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # FIN WordPress

Save the file and try to reload your WordPress site. If this process worked, you can delete the old .htaccess file and continue working with the new one.

However, if your host uses an Nginx server, you’ll need to follow a slightly different process. This server type uses a variety of different config files, depending on the hosting provider. We recommend reaching out to your host to see which one applies to your situation.

13. Contact Your Web Hosting Provider

If you’ve tried all of these methods and you can’t fix the “too many redirects” error, it might be time to get some help. You might be missing a crucial step, or there could be a deeper issue with your WordPress site.

By contacting your web hosting provider, you can get fast assistance with the error. For example, DreamHost customers can contact our technical support team.

The DreamHost technical support landing page.

You’ll need to log in to your account. You may also need to provide some information, such as your domain name and customer details.

Related: How to Choose a Web Host (Our 15-Point Checklist)

How to Prevent the “Too Many Redirects” Error in the Future (3 Methods)

If you want to prevent the “too many redirects” error, there are a few steps you can take within your browser and site. Let’s take a look at a few different methods.

1. Keep Your Plugins and WordPress Files Up to Date

Outdated or faulty plugins are some of the leading causes of the “too many redirects” error. We already covered how you can deactivate any add-ons that may be triggering the issue. However, you can also take preventative steps with your current plugins and theme files.

For example, you should update your plugins and WordPress theme frequently. You can tell if the software has a new release because you’ll see an alert in your WordPress dashboard. You can also navigate to Plugins > Installed Plugins.

Updating plugins in WordPress.

You can update any plugin by clicking on update now or Enable auto-updates. However, if you prefer to do the process manually, we recommend checking this page on a regular basis. Doing so will enable you to stay on top of any new releases and bug fixes.

Additionally, you can report any faulty plugins if they cause the “too many redirects” error. Find the corresponding plugin support forum and document your issue to see if there is a known solution. Moreover, this action could prompt the plugin developers to fix the problem.

2. Clear Out Your Cache and Stored Cookies Regularly

Earlier in the guide, we explained how to clear out your cache and your saved cookies. These methods prevent your browser or WordPress site from trying to access outdated data.

It’s likely that you won’t need to use these methods as most browsers are smart enough to remove outdated cookies and cache items. However, you can streamline the process by using a WordPress plugin to clear your site’s cache. An add-on such as this one can make sure that the most current version of your site is always available to your users.

For example, if you’re using WP Super Cache, you can set up automatic processes. In your WordPress dashboard, navigate to Settings > WP Super Cache.

Configuring settings in WP Super Cache. 

If you want to remove cached files manually, you can click on Delete Cache. You can also navigate to the Advanced tab and scroll down to Expiry Time & Garbage Collection. Here, you can control how long cached files remain active on your site.

Configuring the WP Super Cache settings.

Here you can choose a custom cache timeout duration in seconds. Alternatively, you can select a custom time and interval to scan your site for outdated cache files. You can even elect to receive emails when this process happens.

You likely won’t be able to access the plugin if you’re already receiving the “too many redirects” error. However, using this add-on can be a sound preventative measure.

3. Use a Checklist or Company for Website Migrations

Many of the causes for redirect errors in WordPress arise from migrations from HTTP to HTTPS. If you’re not familiar with migrating a site, you may miss some of the essential processes needed to make your website redirect and function correctly.

Therefore, we recommend using a dedicated migration service to take care of the process. Professionals have experience with every aspect of migrating a site. As such, they’re less likely to make mistakes.

If you prefer to do the migration yourself, you might like to use a checklist during the process:

  1. Prepare for the migration. First, you’ll need to make a copy of your site as a backup. You’ll also need to block access to your new site until you can check it for errors and migrate all your content.
  2. Create a URL mapping. You’ll need to create a redirect map for all your site’s URLs. Then, you’ll need to update them and create sitemaps so that you can transition the links easily.
  3. Create backups. Before starting the migration, you’ll probably want to back up all your individual content. Otherwise, you could lose it if something goes wrong during the process.
  4. Update your DNS settings. You’ll need to change your domain settings so that the URL points to your new address. Usually, your new host can take care of this for you.
  5. Set up your redirects. This step is crucial because misconfiguring your redirects can trigger the “too many redirects” error. Make sure you test each link to see that it works.
  6. Send your URLs to Google Search Console. You’ll need to verify your new site and send sitemaps with your new URLs indexed. This process is essential for Search Engine Optimization (SEO).
  7. Update your links. If other websites link to your site, you might like to ask them to update those URLs. Additionally, you should ensure that any ad campaigns contain the correct links for your new website address.
  8. Check for problems. Finally, you might like to run a site audit. This process can test all your links and identify any issues.

If you’re migrating to a different server, the process might be slightly different. It pays to do your research before the migration to avoid any errors.

Have Another Error Message to Fix?

If you need to resolve other technical problems on your site, we’ve put together several comprehensive tutorials to help you troubleshoot every common WordPress error:

  • How to Troubleshoot the WordPress White Screen of Death
  • How to Fix the 500 Internal Server Error in WordPress
  • How to Fix Syntax Errors in WordPress
  • How to Fix the WordPress Not Sending Email Issue
  • How to Fix the Error Establishing a Database Connection
  • How to Fix WordPress Error 404 Not Found
  • How to Fix White Text and Missing Buttons in WordPress Visual Editor
  • How to Fix the Sidebar Below Content Error in WordPress
  • What to Do When You’re Locked Out of the WordPress Admin Area
  • How to Fix “Upload: Failed to Write File to Disk” WordPress Error
  • How to Fix the Missed Scheduled Post Error in WordPress
  • How to Fix the Facebook Incorrect Thumbnail Issue in WordPress

And if you’re looking for more information and best practices for running a WordPress site, check out our WordPress Tutorials section. This is a collection of expert-written guides designed to help you navigate the admin dashboard like a pro.

Get Content Delivered Straight to Your Inbox

Subscribe to our blog and receive great content just like this delivered straight to your inbox.

Sign Me Up!

No More Redirect Loop Error

The “too many redirects” error can happen in WordPress when the site gets stuck in a redirection loop. Although the problem can be frustrating, you should be able to solve it pretty quickly.

You can usually fix the error by clearing out your cache or cookies. Additionally, there may be solvable issues with your server, third-party platforms, or plugins. Finally, if you still can’t troubleshoot the redirection error, your hosting provider may be able to help you out.

Are you looking for a WordPress hosting provider that can help you with redirection issues and other common errors? Check out our DreamHost packages today! We provide personalized technical support to assist you with any WordPress problems.

Image source: Flickr

IMG_4807-150x150

About the Author: Jason Cosper

Jason is DreamHost’s WordPress Product Advocate, based in Bakersfield, CA. He is currently working on making our DreamPress product even better. In his free time, he likes to curl up on the couch and watch horror movies with his wife Sarah and three very small dogs. Follow him on Twitter.

Join for only $1.99

Normally $29.95

Register now

Related Articles
  • 12 Navigation Menu Design Tips for a Better User Experience
  • How to Develop Your Own WordPress Theme (Beginner’s Guide)
  • How to Use a Content Delivery Network (CDN) with WordPress
  • Minification in WordPress: what it is and how to do it
  • Accélérez votre site WordPress avec la compression Gzip

Trop de redirections : ce que signifie cette erreur et comment y remédier

Anna Fitzgerald

Anna Fitzgerald

Mise à jour : 13 juin 2022

Publié: 12 octobre 2021

When surfing the web, we’ve all likely stumbled upon a “too many redirects” error message. This can be frustrating for users — and downright scary for site owners. You don’t want this error message to get in the way of the user experience or conversions on your site.

Site owner fixing too many redirects error

In this post, we’ll go over what this error means and how to fix it on different browsers so you can get your site back up and running.

Speed Up Your Website with HubSpot’s Built-In CDN

Too Many Redirects Error

The too many redirects error indicates that your browser is stuck in an infinite redirection loop. That means your browser is trying to visit one URL which points to another URL, which points back to the first URL, so it’s stuck. This loop could go on forever — but eventually your browser gives up and displays the “too many redirects” error.

This error might show up differently depending on what browser you’re using. Here are some variations below.

Too Many Redirects Chrome

too many redirects chrome

Image Source

Too Many Redirects Safari

too many redirects safari

Image Source

Too Many Redirects Firefox

too many redirects firefox

Image Source

This error is likely caused by a configuration error on the website you’re trying to visit. If the website in question is your website, then you have to take steps to resolve it as soon as possible. Let’s walk through solutions below.

How To Fix Too Many Redirects

  1. Clear cookies on the redirecting website.
  2. Clear your browser cache.
  3. Ensure your SSL certificate is installed correctly.
  4. Evaluate your third-party services and plugins.
  5. Reset your htaccess file.
  6. Contact your hosting provider.

These steps apply to any website, no matter what website builder or content management system (CMS) it uses.

However, if you have a WordPress website, then there are some unique steps you can take to resolve the too many redirects error. Check out How to Fix the Redirect Loop Error in WordPress to learn more.

1. Clear cookies on the redirecting website.

To start, try clearing cookies on the website causing the redirect loop. The process is similar for any web browser. The steps for each are outlined below.

Chrome

  • At the top right, click the Customize icon then click Settings.

Navigate to setting to clear cookies on Chrome

  • Click Privacy and security from the left toolbar.
  • Click Cookies and other site data.

Click Cookies and other site data on Chrome

  • Scroll down and click See all cookies and site data.

Click see all cookies and other data on Chrome

  • At the top right, search for the website’s name.
  • To the right of the site, click Remove.

Click remove redirecting loop website on Chrome

Safari

  • Click Safari > Preferences.

click Safari > Preferences to clear cookies

  • Click Privacy.
  • Click Manage Website Data.

Click manage website data to clear cookies on safari

  • Use the Search field to find the name of the website causing the redirect loop.
  • Select the site and click Remove.

Remove redirecting website on Safari

  • Click Done.

Firefox

  • Click Firefox > Preferences.
  • Click Privacy & Security from the left toolbar.
  • Scroll to the Cookies and Site Data section.

Click Cookies and Site Data on Firefox to clear cookies

Image Source

  • Click Manage Data…
  • In the Search field, type the name of the website causing the redirect loop.

Remove redirecting website in firefox to clear cookies

Image Source

  • Click Remove All Shown.
  • Click Save Changes.

2. Clear your browser cache.

If clearing cookies on the specific website causing the redirect loop doesn’t work, try clearing your whole browser cache. The process is similar for any web browser. The steps for each are outlined below.

Chrome

  • At the top right, click the Customize icon then click Settings.

Click settings in chrome to clear cache

  • Click Privacy and security from the left toolbar.
  • Click Clear browsing data.
  • Set your time range, then click Clear Data.

Click clear data on Chrome to clear cache

Safari

  • Click Safari > Preferences.

click safari > preferences to clear cache in safari

  • Click Privacy.
  • Click Manage Website Data.

click manage website data to clear browser cache in safari

  • Click Remove All.
  • Click Remove Now.

click remove all and remove now to clear cache in safari

  • Click Done.

Firefox

  • Click Firefox > Preferences.
  • Click Privacy & Security from the left toolbar.
  • Scroll to the Cookies and Site Data section.

click cookies and site data to clear cache in firefox

Image Source

  • Click Clear Data…
  • Cookies and Site Data and Cached Web Content should both be check marked by default. Click Clear.

clear cached web content in firefox

3. Ensure your SSL Certificate is installed correctly.

If you’ve cleared your cookies and cache and are still getting the too many redirects error, then the issue could be your HTTPS settings. HTTPS means that your website uses a security protocol called Secure Sockets Layer (SSL) to encrypt data transfers between a browser requesting a website and the web server delivering that website.

This protocol can cause the redirect loop in special circumstances. For example, if you’ve forced SSL on your site without actually installing an SSL certificate, then you’ll likely see the error. That’s because all requests to your hosting server are sent over HTTP, which your server has to redirect to HTTPS again and again.

So it’s important to ensure your SSL certificate is installed correctly and renewed when needed. You can use an online tool like SSL Shopper, SSL Server Test, or Digicert, to test that your SSL configuration is installed, valid, and trusted in just a few minutes.

enter site URL in SSL shopper to check if SSL configuration is causing too many redirects errorn

4. Evaluate your third-party services and plugins.

If you’ve ruled out your cookies, cache, and HTTPS settings as causing the too many redirects error on your site, then check any third-party services you use.

If you use a proxy server — an  intermediary server that directs requests from multiple clients to different servers —then it could be causing the error message. For example, Cloudflare has a Flexible SSL option, which forces requests between clients and Cloudflare to be sent over HTTPS but allows requests between Cloudflare and your origin server to be sent over HTTP.

L'option SSL flexible de Cloudflare peut provoquer trop d'erreurs de redirection

Image Source

If that option is enabled but you already have an SSL certificate installed on your server, then your server will redirect these requests to HTTPS and likely cause the too many redirects error. You can resolve this issue by switching to another encryption mode, like Full or Full (strict).

If your site is on WordPress, then third-party plugins could also be causing the error. Redirect plugins allow you to easily and quickly set up redirects when the permalink of a post or page is changed or when other conditions are met. But sometimes changing the settings of these plugins or updating them can cause the too many redirects error.

To see if this is the issue on your site, try disabling your plugins. A good way to test this is by deactivating all your plugins in bulk, then reactivating them one by one to isolate the culprit. Here are the steps:

  • Log into your WordPress admin dashboard.
  • Select Plugins > Installed Plugins.
  • Check the box next to Plugin to select all your plugins.

Cochez la case à côté du plugin pour tout sélectionner à désactiver temporairement

  • Choose Deactivate from the Bulk Actions drop-down menu, then click Apply.

Sélectionnez désactiver dans le menu déroulant d'action groupée pour corriger trop d'erreurs de redirection

  • Refresh your site.

If you no longer see the too many redirects error, start activating each plugin one by one and reloading your website after each activation to identify the faulty plugin.

You may need to reach out to the plugin developer to resolve the issue, or find an alternative to use on your site.

5. Reset your htaccess file.

If none of the steps above have resolved the too many redirects error, then the problem is likely how redirects are set up on your server. To double check that, you’ll need to access your hypertext access file, or the .htaccess file, rename it, and create a new one. To do so, you can use a file manager like cPanel or via FTP client. The following steps are for cPanel specifically.

  • Go to File Manager and select your .htaccess file.
  • Right-click to rename it .htaccess_old. This is now your backup file.
  • Go to public_html
  • Create a new text file and name it .htaccess.
  • Copy and paste the following code into the file.

<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteRule ^index\.php$ – [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule>

  • You can now save and exit the file manager.

This will reset the .htaccess file to its default settings so you can now save and refresh your site. If this did not resolve the too many redirects error, you can restore the backup .htaccess file.

6. Contact your hosting provider.

Si aucune des étapes ci-dessus ne résout votre problème, essayez de contacter votre hébergeur. Si vous leur faites savoir que vous rencontrez un trop grand nombre d’erreurs de redirection qui affectent les performances de votre site Web, ils peuvent vous indiquer la cause exacte – ou même la résoudre pour vous.

Résolution de l’erreur Trop de redirections

There’s no foolproof method for preventing a too many redirects error, but there are steps you can take to resolve it. By fixing this errors as quickly as possible, you’ll ensure visitors can continue browsing, navigating, and converting on your site with ease.

Nouvelle incitation à l'action

Topics: Website Performance

Don’t forget to share this post!

How to Fix Error Too Many Redirects Issue in WordPress

Last updated on April 24th, 2021 by Editorial Staff | Reader DisclosureDisclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

Shares 585 Share Tweet Share Facebook Messenger WhatsApp Email

Are you trying to fix the ‘Error Too Many Redirects’ issue on your WordPress website?

It is a common WordPress error that may be caused by a plugin or incorrect settings. However, it leaves users locked out of their WordPress websites which makes it particularly troublesome.

In this article, we’ll show you how to easily fix the ‘Error too many redirects’ issue in WordPress. We will also cover how to regain access to your website and troubleshoot the error.

Correction d'un trop grand nombre d'erreurs de redirection dans WordPress Correction d'un trop grand nombre d'erreurs de redirection dans WordPress

What Causes The Error Too Many Redirects Issue in WordPress?

The ‘Error too many redirects’ is caused by a misconfigured redirection issue in WordPress.

As you know that WordPress uses an SEO-friendly URL structure feature that uses the redirect function.

Similarly, many popular WordPress plugins use this feature to set up temporary redirects, permanent 301 redirects, and for fixing the 404 errors.

If you are using a plugin to fix the SSL insecure content issue or a WordPress caching plugin, then they may also affect redirects and cause this error.

Erreur trop de redirections dans Google Chrome Erreur trop de redirections dans Google Chrome

However, this error doesn’t tell you what’s causing the conflict and forcing the redirect loop in WordPress.

This is how the error looks in Firefox with the message ‘The page isn’t redirecting properly’.

Erreur de trop de redirections dans Firefox Erreur de trop de redirections dans Firefox

That being said, let’s take a look at how to fix the error too many redirects issue in WordPress.

We will walk you through step-by-step troubleshooting, getting access to your WordPress site, and fixing the error from reoccurring.

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, just keep reading.

1. Clear Browser Cookies and Cache

A common cause of the error could be your web browser cookies. Try accessing your website using a different web browser like Firefox, Safari, Opera, Microsoft Edge, etc.

If you are able to access your website normally using a different browser, then you need to clear browser cookies and cache on your regular browser.

Effacer les cookies et le cache dans Google Chrome Effacer les cookies et le cache dans Google Chrome

We have a detailed guide on how to clear browser cache in all major browsers that will help you do that.

On the other hand, if changing the browser doesn’t fix the issue then you can move on to the next step.

2. Deactivate All WordPress Plugins

The most common cause of the WordPress redirect loops or ‘Too many redirects’ issue is a plugin conflict. A plugin trying to set up a redirect in a way that conflicts with default WordPress redirects would end up causing this error.

To fix this, you need to deactivate all WordPress plugins on your website. Now, normally you can just go to Plugins » All Plugins page inside the WordPress admin area and deactivate plugins from there.

Disable all plugins Disable all plugins

However, we are assuming that due to the redirect error you may not be able to access the WordPress admin area.

In that case, you will need to deactivate WordPress plugins using an FTP client, or the File Manager app in your WordPress hosting control panel.

Simply connect to your website using an FTP client and go to the /wp-content/ folder.

Rename plugins folder via FTP Rename plugins folder via FTP

There you’ll find the plugins folder, which you need to rename to ‘plugins.deactivate’ which will deactivate WordPress plugins.

Tapis de complément renowned Plugins folder renamed

Basically, WordPress looks for a folder called plugins to load the plugin files. When it does not find the folder, it automatically disables the active plugins in the database.

Now you can try visiting your WordPress website. If you are able to login to your WordPress admin area now, then this means one of the plugins was causing the error.

To figure out which plugin was the culprit, you need to switch back to the FTP client or File Manager app and rename your plugins.deactivate folder back to ‘plugins’.

After that, switch to the WordPress admin area of your website and go to the Plugins » All Plugins page. From here, you can activate your plugins one by one, and then visit your website to see if you can reproduce the error.

Once you find the plugin that is causing the error, you can find an alternative to that plugin or report the issue to the plugin’s support forum.

3. Fix WordPress URLs

Another major cause of this error is a misconfiguration in WordPress URL settings. Normally, you can view these options under Settings » General page.

Configuration de l'URL de WordPress WordPress URL Parameters

For most websites, the URLs in the WordPress Address and Site Address field have to be the same. However, some users may end up using www in one URL and non-www URL in the other.

Since you may not have access to the WordPress admin area, you may need to fix the WordPress URLs using an FTP client or the File Manager app.

Simply connect to your WordPress site using an FTP client and go to /wp-content/themes/your-theme-folder/.

Editing archiving functions.php Edit the functions.php file

From here you need to locate the functions.php file and edit it using a plain text editor like Notepad or TextEdit.

Next, you need to add the following code at the bottom:

1

2

update_option( ‘siteurl’ , ‘https://example.com’ );

update_option( ‘home’ , ‘https://example.com’ );

Don’t forget to replace https://example.com with your own site URLs. You can now save your changes and upload the file back to your website.

After that, you can try visiting your website to see if this resolves the error.

For more methods, see our tutorial on how to easily change WordPress URLs.

4. Reset WordPress .htaccess File

The .htaccess file is a special file that is used by website server to manage redirects and other server settings. WordPress also uses this file for SEO friendly URLs and other redirects.

A veces, los complementos de WordPress pueden realizar cambios en el archivo .htaccess de su site web, lo que puede desencadenar este error. Il est également possible que vous désactiviez un complément sans éliminer les cambios esos de su archivo .htaccess.

Dans ce cas, deberá restablecer manuellement l’archive .htaccess de WordPress.

Nuevamente, deberá acceder a su site web utilizando un client FTP o la aplicación Administrador de archivos en su tablero de alojamiento. Una vez conectado, verá el archivo .htaccess en la carpeta raíz de su site web.

Editing the .htaccess file via FTP Modification du fichier .htaccess via FTP

Note: If you can’t come across .htaccess archives, see the new guide on how to find .htaccess archives in WordPress.

First, you need to download a copy of your .htaccess file to your computer as a backup.

After that, you can go ahead and delete the file from your website. Now you can intend to visit your WordPress blog, and if everything works normally, this means that your .htaccess file was causing the redirect error.

Now, since we deleted the .htaccess file, you need to recreate it. Normally, the WordPress website can function on its own, but to make sure you can go to the Settings » Permalinks page and click on the ‘Save Changes’ button at the bottom.

Update permalinks to create .htaccess file Refresh permalinks to create .htaccess file

5. Prevent demasiados redirect errors in WordPress

Hopefully, the steps mentioned above would have fixed the redirect problem on your website. If a solution doesn’t help your problem, you may need to talk to your WordPress hosting company to make sure it’s not due to a server issue.

Once they fix the problem on your site, you should also find out what caused the problem.

If it is a plugin, you should report the problem to the plugin support forum. Check out our guide on how to request WordPress support. However, if you can’t get help, you can always find an alternative plugin that does the same thing.

If the error was caused by an incorrect configuration of the WordPress site, please note and ensure that the configuration of this site is correctly configured.

For more tips, check out the new in-depth tutorial on how to fix WordPress issues from your cuenta like a total WordPress professional.

We hope this article has helped you solve the problem of too many redirects on your website. You can also bookmark our latest primer on common WordPress errors and how to fix them.

If you like this article, submit to a new YouTube channel for WordPress video tutorials. Also puede encontrarnos on Twitter and Facebook .

Shares 585 Share Tweeter Share Facebook Messenger WhatsApp E-mail

Google Google translator

Google Google Translate


Video WordPress redirected you too many times

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…