×


WordPress Error Too Many Redirects Issue

WordPress Error Too Many Redirects Issue signifies that the website keeps being redirected between different addresses in a way that will never complete. 

Often this is the result of competing redirects, one trying to force HTTPS (SSL) and another redirecting back to HTTP (non-SSL), or between www and non-www forms of the URL.

Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to fix WordPress related errors.

In this context, we shall look into how to fix error too many redirects issue in WordPress.


Nature of WordPress Error Too Many Redirects Issue ?

When this error occurs, you will see an error message such as this:

The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

Basically, Too Many Redirects error occurs due to a misconfigured redirection issue. As you know that WordPress has SEO friendly URL Structure which uses the redirect function. Several other popular WordPress plugins also use the redirect functionality. 

For example, WordPress SEO plugin allows you to remove category base from category URLs by redirecting users to a URL without category base. 

WordPress SSL and cache plugins also use redirects.

As a result of a misconfiguration in any of these redirection tools, your site may end up redirecting users to a URL that is actually redirecting them back to the referring URL.


How to fix WordPress Error Too Many Redirects Issue ?

The most common misconfiguration that we have come across repeatedly is when a user has incorrect URL in WordPress Address URL or Site Address URL settings.

For example, lets assume that your site's url is http://www.example.com and you go to 'Settings » General' and set it to http://example.com. 

Most web hosts allow you to choose whether you would like to add a www prefix to your domain name or have it without www. 

In case you had selected to add www to your URL, then adding http://example.com in your WordPress settings will cause the error. 

Or if you opted to use your domain without www prefix, then adding it with www prefix in WordPress settings will cause this error.

When a user will come to http://example.com, they will be redirected by your server's configuration to http://www.example.com where they will be redirected back to http://example.com by WordPress because that's what you have set up in the settings.

If your site was working fine, and you you did not make any changes to those settings. 

Then you need to contact your web host, because it is most probably a configuration issue at their end.


To fix this, you need to change your WordPress Address and Site Address. 

Go to 'Settings » General', change your WordPress and Site Address. 

If you have your address with www prefix, then change it to non-www URL, and if you have it with non-www URL then add the www prefix.

Note: Make sure that you don't leave a trailing slash at the end of your URL like http://www.example.com/


How to Change Site URL Without Access to Admin Area to fix WordPress Error Too Many Redirects Issue?

In case you don’t have access to WordPress Admin area, you can still update these settings by defining them in wp-config.php file. 

i. Simply connect to your website using an FTP client. Once you are connected to your site, you will find wp-config.php file in your site's root directory. 

You need to download and edit this file using a text editor like Notepad. 

ii. Then add these two lines to the file and don't forget to replace example.com with your own domain:

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

iii. Save the file and upload it back to your web server. 

Now try to access your WordPress site. If you still can not access your site, then try to add your domain with www prefix.


Other possible fixes to WordPress Redirect Issues ?

If the previous step did not solve your problem, then it is likely that there is a plugin issue with your site. 

To troubleshoot this, first you need to figure out is which plugin is causing the issue. 

Did you activate a new plugin recently right before this error happened? 
Did you update plugins right before this error happened? 

If the answer to any of the above questions is YES, then it narrows the problem down to that plugin. 

You can simply deactivate that plugin by deleting that plugin's folder from wp-content/plugins/.

If you do not know which plugin is causing the issue, then you would need to do some trial and error. 

The quickest way to do this is by deactivating all plugins. After deactivation of all plugins on your site, you need to use FTP to download the .htaccess file as a backup. 

You can find this file in your site's root directory. 

Once you have downloaded the file, delete it from your server. Now try to access your site.

This process will allow your server to regenerate a new .htaccess file, and since there are no plugins activated, it will most likely fix the issue. 

If the error is gone now, then you know for certain that it was a plugin causing this error.

The next step is to find out which plugin was the culprit. 

To do this, you need to download and install fresh copies of all your plugins. 

Activate plugins one at a time and after activating each plugin try to browse several pages on your site using a different browser as a non-logged in user. 

Hopefully you will find the plugin that caused the issue.


[Need urgent assistance to fix Wordpress error? We are available to help you. ]


Conclusion

This article will guide you on how to resolve “error too many #redirects issue” in #WordPress.

There are no limits in using 301 redirects on a site. You can implement multiple number of 301 redirects without getting any penalty. 

But Too many 301 redirects put unnecessary load on the server and reduce speed. 

Try to reduce direct redirects by using rules.

To fix WordPress #301 Moved Permanently:

i. Change the #HTTPS response code to 200 if you don't want the URL to redirect.

ii. If the URL is supposed to redirect, then remove the loop and fix the final destination URL.