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 in an infinite loop of redirection. While this error sounds scary, it’s not that hard to fix. In this tutorial, we’ll show you how to do it. Let’s take a look!

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 hence, 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 this 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?

You can try every method below until one fixes the error.

Method 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:

On Chrome, simply go to the three small dots on the upper right menu bar of the brow, press Settings. Scroll down and click on Advanced, then Clear Browsing Data.

This image shows you how to clear browsing data on Google Chrome

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

On Safari, locate History in the top menu bar, then select Clear History. Doing this will automatically delete cookies and browsing data.

This image shows you how to clear browsing data on Safari

Method 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 this 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:
  4. Save your changes, and that’s it! Visit your website to check whether the URL change fixed the 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 (

Checking and 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. Once the General Settings page appears, 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 edit anything, make sure to your Save Changes, and that’s it!

Method 3. Deleting WordPress Cache

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

  1. Login to your WordPress dashboard and head to Plugins -> Add New
  2. Search WP Fastest Cache in the search bar and Install Now -> Activate the plugin.
  3. Scroll down on the WordPress dashboard and find  WP Fastest Cache under Settings.
  4. Pick Delete Cache in the upper menu bar and choose which option suits your needs.This image shows you how to delete WordPress cache with a plugin
  5. And that’s it! If all goes right, you’ll get an “All cache files have been deleted” message at the top of the page.

Method 4. Disabling Corrupted Plugins

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

You can do so through your hosting providers’ File Manager or an FTP client. Follow these steps to disable your plugins manually using FileZilla FTP client.

  1. Connect your hosting provider to FileZilla.
  2. Login to your FileZilla, and head to Remote Site.
  3. 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
  4. Rename the folder to plugins_disabled and try to access your website. If the error is gone, then one or more plugins are corrupted/outdated.
  5. 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 most recent one.

If disabling the plugins folder doesn’t fix the problem, you can try a more drastic option below.

Method 5. Disabling .htaccess File

Another possibility is that some setting in your .htaccess file is making your website go into a loop of redirection. If that’s the case, you can disable your .htaccess 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 loads.

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 that’s it! If misconfigurations in the .htaccess file are causing the error, this method should fix the problem.

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 site. Here’s a quick recap of the methods:

  • Deleting browsing data
  • Checking and editing URL settings from the WordPress dashboard and manually.
  • Deleting WordPress cache with a plugin
  • Disabling faulty plugins through an FTP client
  • Disabling and editing .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.

Related tutorials


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 onJune 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 onJune 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 onJune 21, 2017

        Hey, Thank you for sharing your find!



    Replied onFebruary 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!


Usman Qamar Reply

August 28, 2019

Thanks bro. very helpful information.


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

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
WordPress do+shortcode
How To Use WordPress do_shortcode