How to Fix err_too_many_redirects in WordPress

How to Fix err_too_many_redirects in WordPress

If you see the err_too_many_redirects error on your WordPress site, don’t panic! It just means that your website is stuck in an infinite redirection loop. While this error might sound serious, it’s not that hard to fix. In this tutorial, we’ll show you how to do it. Let’s take a look!

Upgrade to Hostinger and get a secure WordPress hosting solution today!

Get Started Here

What Is err_too_many_redirects?

err_too_many_redirects happens when a browser can’t connect to the correct server of your website. In other words, the browser goes back and forth through URLs and severs, trying to figure out the location of your website and then sends it into a loop of redirects.

This error can happen due to quite a few reasons, from the browser itself to misconfiguration in your website settings, or corrupted plugins, it’s almost impossible to know what to do right away when err_too_many_redirects error pops out.

Luckily, there are a few things you can do to try and fix this error, and we’ll cover everything one by one.

How to Fix err_too_many_redirects?

There are a few ways to fix this error, but it’s hard to pinpoint exactly which one you should use. Feel free to try out every method below until one fixes err_too_many_redirects error.

1. Deleting Browser Data

Browser data can sometimes store corrupted or outdated cookies and cache, which may cause the err_too_many_redirects error. So, before making changes to your site, it’s wise to check if it’s not just your browser causing the error by deleting its data history.

To do that, follow these simple steps:

  1. On Chrome, simply click the three small dots on the upper right menu bar of the browser and press Settings. Scroll down and click on Advanced, then Clear Browsing Data.
    This image shows you how to clear browsing data on Google Chrome
  2. On Mozilla, head to the upper right menu button, select Options. Choose Privacy and Security, then Clear Data.
    This image shows you how to clear browsing data on Mozilla Firefox
  3. On Safari, locate History in the top menu bar, then select Clear History. Doing this will automatically delete cookies and browsing data.

2. Checking Your URL Settings

If clearing your browsing data doesn’t fix the problem, check if your WordPress URL settings are configured correctly.

You can do it through the WordPress dashboard or manually.

Checking and Changing URL Settings Manually

When your website is experiencing err_too_many_redirects error, you probably can’t enter the admin area of your WordPress installation. In that case, you may change the URL settings with the help of your wp-config.php file.

You can edit the file either through your File Manager or an FTP client like FileZilla. In this example, we will show you how to edit the file via Hostinger’s File Manager:

    1. Login to hPanel and head to File Manager under Files.
      This image shows you how to find File Manager on hPanel
    2. In the public_html directory, find your wp-config.php file and right-click to Edit.
      This image shows you how to edit wp-config file through File Manager
    3. Add the following lines to the file. In this case, is your domain name:
    4. Save your changes. Visit your website to check whether the URL change fixed the err_too_many_redirects error.

As an alternative, you can also edit URL settings via your database. You can find a great and easy guide on how to do that here.

IMPORTANT: If your website file is in the default root folder (/public_html/), you can use the default ( URL. If it’s in a subfolder like (/wp/), then replace the URL to something like (

Changing URL Settings via Administrator Dashboard

If you somehow manage to login to your WordPress dashboard, then follow these steps to review and change your URL settings from the admin area:

  1. From your WordPress dashboard, go to Settings.
  2. In the General Settings page, check your WordPress Address (URL) and Site Address (URL).
    This image shows you the URL settings on WordPress
  3. Make sure the URLs you see are configured correctly.
  4. If you’ve edited anything, make sure to save your changes.

3. Deleting WordPress Cache

In some cases, the err_too_many_redirects error happens because of the cache stored on WordPress.

  1. Login to your WordPress dashboard. Head to Plugins -> Add New.
  2. Search for WP Fastest Cache using the search bar and click Install Now -> Activate to set up the plugin.
  3. Look for WP Fastest Cache option under Settings.
  4. On the Delete Cache tab, choose which option suits your needs best.
    This image shows you how to delete WordPress cache with a plugin
  5. If all goes well, you’ll get a confirmation message at the top of the page.

4. Disabling Corrupted Plugins

Another reason that might cause err_too_many_redirects error message is a corrupted or outdated plugin. To see if that’s the source of the problem, disable all of your plugins by manually editing its folder.

You can do so through your hosting provider’s own File Manager or an FTP client, such as FileZilla. In this example, we’ll be using the latter method.

  1. First, configure your FileZilla client.
  2. Once you’re logged in, select Remote Site. Go to wp_content and locate the Plugins folder — right-click to Rename.This image shows you how to disabled plugins folder through an FTP client
  3. Rename the folder to plugins_disabled and try to access your website. If the error message no longer appears, then one or more plugins are corrupted or outdated.
  4. Rename the folder back to Plugins and remove your plugins one by one to check which one is causing the error. We recommend starting with the one that was most recently installed.

5. Disabling .htaccess File

There’s a possibility that some sort of variable in your .htaccess file is making your website go into a loop of redirection. If that’s the case, you can disable your file to regain access to your site.

  1. Access the File Manager via your hosting control panel.
  2. Locate your .htaccess file. If you can’t find it, use this tutorial for guidance.
  3. Right-click to Rename the file. .htaccess_disabled, for example.
    This image shows you how to disable .htaccess file through File Manager
  4. Now check if your website is loading correctly.

If it works, check the .htaccess file’s configuration by right-clicking on the file and Edit. It should look like the default .htaccess configuration. If it’s not, delete the content from the file and paste these default rules instead:

# 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]
# END WordPress

Rename the file back to .htaccess, and you’re done. If misconfigurations in the file are causing the error, this method should fix the problem immediately.

NOTE: Since replacing your previous .htaccess settings may break your website settings, you should always make a backup of the original file before making any changes. 


In this tutorial, you’ve learned five methods to fix the err_too_many_redirects error on your WordPress website. Here’s a quick recap of these methods:

  • Delete cookies and other browsing data
  • Check and edit URL settings from the WordPress dashboard and manually
  • Delete WordPress cache with a plugin
  • Disable faulty plugins through an FTP client
  • Disable and edit .htaccess file via File Manager

Pretty easy, right? If you have other methods you want to share, or if you have any questions, do drop us a comment. Good luck!

The Author


Tomas A. / @tomas

Tomas is a senior customer support agent at Hostinger. Besides providing top-notch technical advice on a daily basis, he likes to create websites and do various coding side projects.


Paul Scott Reply

June 19 2017

Unfortunately, NONE of the sites that I've visited over the past 3 days address this issue as it pertains to running WordPress under IIS 8.0 on Windows Server 2012 R2. Note that there is NO .htaccess file, there is only a wp-config.php file. I have searched and searched and searched for a solution to this issue, with zero luck thus far. Please note that the ADMIN area (for WordPress), works fine. It is only when I try to fire up the site itself that this "too many re-direct" issue comes up. In fact, many of the sites I've visited state that the issue is caused by "the hosting company." Unfortunately, I AM the hosting company, so this does not help me. Please help! This is driving me crazy!


    Domantas G.

    Replied on June 19 2017

    Hey, Sorry but Hostinger offers Linux hosting only and we don't really have experience in Windows servers. Anyway, you may want to make sure that you have setup WordPress on Windows server correctly.


      Paul Scott

      Replied on June 20 2017

      I have found that the solution to this problem is as follows: Add the following line of code to the FUNCTIONS.PHP file in the wp-content folder, for the theme you are using: // Remove Canonical URL functionality (as per URL: remove_filter('template_redirect', 'redirect_canonical');


        Domantas G.

        Replied on June 21 2017

        Hey, Thank you for sharing your find!



    Replied on February 26 2018

    hi. i too much gooogle, and solution was born: add in wp-config.php lines: define('FORCE_SSL_ADMIN', false); its disable some function, but truble was gone. in my situation i migrate to "https" from "http", and use plugin - Rename wp-login.php my wp-config.php was contain lines: define('WP_SITEURL',''); define('WP_HOME',''); without line "define('FORCE_SSL_ADMIN', false);" i have loop redirects.


henry Reply

April 14 2018

my wp-admin as too many redirects . i deactivated 404 & redirect plugins. Thanks for your article, it helped alot :-)


Nazreen Reply

May 02 2018

Your article helped me a lot! It took me a week to configure and fix all the redirect issues. Many thanks!


Arun Kumar Reply

October 28 2018

Option -2 resolved my problem of TOO MANY REDIRECTS while accessing wp admin. Thanks a Lot.


Marina Reply

May 26 2019

Step 2 worked for me. Thank you Tomas!


nmm Reply

June 22 2019

Hi thanks a lot you saved my life adding site url manually in wp-config.php resolved the loop best regards


Usman Qamar Reply

August 28 2019

Thanks bro. very helpful information.


tohsakarin Reply

October 06 2019

Thanks step 3 worked for me


uditha sanjaya Reply

November 30 2019

Thankyou so much, after 7 days I found the great man with this tutorial. option 5 is work wel


Ramu Reply

July 03 2020

OSM and lovely article and easy to follow. Just one small change made the day


Rizwan Waris Reply

July 04 2020

hi, unfortunately non of the above worked for me. I am trying to install fresh version of WordPress and i have deleted everything from my website including database. When i extracted the wp folder in the public_html folder through my cpanel, and tried to access my url it is giving me error " too many redirects. I googled and did every thing people mentioned including clear cache but in vain. can some one help me out.?


Roeland Reply

July 18 2020

Thank You! Checking and Changing URL Settings Manually This helped :) I was in Wordpress admin, I could preview the website, but not open it from my dashboard or going to the URL


Susan Forson Reply

August 25 2020

Thank you so much! I was not able to log into WP admin, so I went into cPanel and edited the config file. I have never done anything like that before, but it totally worked!! Thank you!


    Tomislav T.

    Replied on November 06 2020

    Hey Susan! Glad to hear it worked. Editing config files and code seems scary at first but it's not that difficult, as there are resources for everything! :) Just make sure to always make a copy of whatever you are editing, to not lose the original file! :)


Skynet Reply

September 25 2020

That was quite amazing --thank you for an awesome Article


    Tomislav T.

    Replied on November 18 2020

    Always happy to help.

Leave a reply




This site uses Akismet to reduce spam. Learn how your comment data is processed.

Become a part of Hostinger now!

More in WordPress