Clicky

Tutorials, WordPress

What is “too many redirects WordPress” error and how to fix it

As prevalent as it would be, WordPress is an extremely reliable and stable system that one can use, irrespective of the knowledge level. However, the ease of use might get impacted by certain errors. At times, these errors can be very odd for beginners, such as white screen, internal server, too many redirects in WordPress, and more.

Generally, such specific problems are generated because of external sources, considering that the core programming of this platform is quite solid. When talking about external sources, they can come in several forms, including the themes and plugins that are incompatible with the WordPress version you’re using.

As a result of it, an error that states too many redirects might appear on your screen, leaving you confused and scratching your head. When this error pops up, you must know that your website isn’t functioning properly.

Moreover, in different browsers, it appears differently. If you’re using Google Chrome, it displays This webpage has a redirect loop error. And, if you’re using Firefox, the screen will display that The page isn’t redirecting properly.

So, what exactly are these errors about and what can you do when you experience them? This tutorial is to guide you through the meaning of too many redirects and how you can fix them.

What Is the ERR_Too_Many_Redirects Error?

too many redirects

Image Source:

The reason behind this error is pretty much how it turns out to be. Usually, this error means that your WordPress settings have some misconfiguration that is making the site to go into an infinite redirection loop.

If it happens, your site won’t stop redirecting from one page to another, and you might find your website to be stuck. And, unlike other kinds of errors, this one may not resolve on its own. As mentioned above, it might appear differently to you, based on the browser that you’re using.

What Causes Too Many Redirects in WordPress?

Considering that WordPress comprises an SEO friendly URL structure that uses the redirect function, there are several other well-known plugins that follow suit.

For instance, there are several SEO plugins for WordPress that let you remove the category base right from the category URLs. This can be done by simply redirecting visitors to a URL that doesn’t come with any category base.

And then, there are cache and SSL plugins that use redirects as well. Because of misconfiguration in any of these tools, your site might redirect visitors to such a URL that is redirecting them back to another referring URL. In such a situation, the browser of the user will be trapped between two pages; hence, showing up this error.

Getting Caught Up in the Loop:

Often, such error messages appear because of a misconfiguration in the settings; however, there are times when reasons can be complicated than that. You may see this error if:

  • Your website or homepage URLs are incorrect or different
  • Misconfigured plugins installed on the site that redirect it
  • A mishap with the custom changes to the .htaccess file
  • A new website is developed in your network with the same URL
  • Hosting multiple networks or sites on one IP address

While these may seem like simple settings, they can easily breakdown your entire website and cause redirect issues. Apparently, fixing these problems on your own is how you can regain access to your website.

How to Fix Too Many Redirects Error?

Before you even begin with fixing this error, you’d need these two significant things:

  • Hosting control panel or FTP access
  • WordPress admin area access (this one is optional, though)

Once you’ve got the access, start with these steps-

Step 1 – Checking the settings of URL

The primary thing that you must do while troubleshooting the error is to scrutinize the URL settings. There are two different ways to do so:

  • Checking URL settings through the administrator dashboard:

For this, go to the WordPress admin area and click on Settings. Here, your General Settings will appear on the screen. Next, check the WordPress Address (URL) and Site Address (URL). You need to ensure that the URL here is correct. If not, make adequate changes and click the Save button.

WordPress too many redirects
Image Source:

  • Checking URL Manually:

There are chances that you might not get access to the WordPress installation admin area. In this situation, you can consider changing the URL settings through the wp-config.php file. Here is a way through which you can edit the file through the file manager-

  • Access the file manager via hosting control panel
  • Look for a wp-config.php file
  • Click Edit

Too many redirects
Image Source:

  • Add the following lines at the end of the code

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

  • Click the Save icon
  • Visit the website and see if the changes fixed the error or not

Step 2 –  Disable Plugins:
Another considerable reason that may cause too many redirects for WordPress is outdated or corrupt plugins. Thus, it’s recommended to disable these plugins and try to regain access to your website. Follow this easy and quick way to disable plugins through your hosting provider:

  • Access File Manager through the hosting control panel
  • Locate the wp-content folder and access it
  • Find the Plugins folder and rename it something else


Image Source:

  • Save your changes

Image Source:

Once you’ve renamed the folder, try accessing the site. If the error has been eliminated, there are chances of corrupt or outdated plugins being available in your site. To fix this, try removing some recent plugins and rename the folder to Plugins.

Step 3 – Disabling .htaccess file-

Another possible reason that might make your site go into the redirection loop would be certain settings in the .htaccess file. In such a case, you’d have to disable the .htaccess file to regain the site’s access. To do so, follow these steps:

  • Access File Manager through the hosting control panel
  • Select .htaccess file
  • Right click on it and select Rename
  • Rename the file to anything else
  • too many redirects WordPress

Image Source: 

  • Once done, access the domain and see if the site loads

If your site works, try having a look at the configuration of the .htaccess file. Press the Edit option and use the default configuration. All you’d have to do is delete all the content from the renamed file and paste this:

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

After this, rename the file back to .htaccess. If the website starts working, it’s confirmed that the issue was caused by an incorrect configuration in the .htaccess file.

Conclusion:
When you’ve understood why too many redirects WordPress happen, fixing them won’t be a hassle for you. Basically, there is nothing that you cannot fix on your own. So, if you’ve come across this error once and didn’t know how to bring things back on track, well, now you have all the ideas.

You can easily apply these methods and fix everything that might be troubling you and your users. Also, do let us know if you came across this error before and how did you fix it in the comments section.

Share this Story
Load More Related Articles
Load More By Editorial Team
Load More In Tutorials

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also

Site Search 360 Review: An Excellent Alternative to WordPress Search

shares Displaying an accessible search box on the ...

Join Over 50,000+ Subscribers

Interested In
  •   
  •           
  •                      

Search