How to Fix err_too_many_redirects in WordPress?
WordPress has made it super easy to design, edit and create a website with no hassle. No matter whether you have the skills of web development or not. If you are aware of the technical terms and aspects of WordPress and web server, it is as easy as 123 to misconfigure their internal setting. err_too_many_redirects errors stand as the most common issue amongst the WordPress website operators.
However, ERR_TOO_MANY_REDIRECTS error in WordPress exists as one of the most irritating problems encountered by WordPress users. ERR_TOO_MANY_REDIRECTS is known as “redirect loop” error in the technical terms. In this, browser faces the problem to figure out which URL to load. So, there might be several reasons behind the issue, but there is no need to worry. It can be solved by examining the cause and fixing it.
In this article, I will explain about the redirect loop and then take you through the well-defined process so that you may not face the troubles while accessing your WordPress site.
Interested? Let’s understand it together!
What is err_too_many _redirects in WordPress?
err_too_many _redirects occur when the browser is unable to connect to the right 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 shows it into a loop of redirects.
Such kind of error can occur due to several reasons such as corrupted plugin, misconfigured URLs settings and corrupted and outdated cookies in the browser. It gets tough to understand what to do right away when err_too_many_redirects appear.
However, there are few authentic ways by which you can fix these issues without any hassle. So, let’s understand every step clearly! Okay?
How to fix err_too_many_redirects in WordPress?
There are some evidence-proved strategies to fix these errors within a few minutes. However, the tough thing is that which method should be implemented to fix the error. Try to execute every mentioned step until the err_too_many_redirects gets fixed. There is no other way or short cut instead of trying out each step.
#Clearing browser data-
Browsers such as chrome, safari, Firefox etc., can store corrupted and outdated cache and cookies in their setting, leading to err_too_many_redirects. Hence, before altering the site settings and removing any plugin, it’s better if you check out your browser and delete “data history.”
- Open the chrome in your desktop and then click on three dots appearing on the chrome and the press on history. Thereafter, you will see the history page and then click on advanced and clear browsing data.
- There is one short cut by which you can directly delete the browsing data quickly. So, press the short key “ctrl+h” then you will be on the history page directly. Then after, click on advanced and follow the same procedure.
Note: Follow the same procedure for each browser whether it is safari, Firefox, Mozilla or anyone else.
#Changing the URLs setting manually-
If the clearing browsing data couldn’t fix the issue, try out the second method. Check whether the WordPress URLs setting are correct or not. If not, so go through the given step.
This procedure can be done by the WordPress dashboard or manually. So, it’s up to you which way is comfortable for you.
Examining or altering the URLs setting manually-
When your website suffers from err_too_many_redirects so you may find the challenges to enter in the admin area. In such a situation, you can adopt another way to change the URLs settings by the help of the config.php file.
You can edit by file manager or by FTP client like FileZilla. We are giving an example below how to edit the file by hosting’s the file manager.
- Sign in to hPanel through login portal and head to File Manager under Files.
- Thereafter, go to public HTML directory, find the wp-config.php file and then click on the icon “edit” appearing on the page.
- Add the mentioned lines to the files. Suppose, example.com is your domain name.
- Save the changes that you made. Then visit on your website and check down whether URL alteration could fix the err_too_many_redirects error or not.
- On the other hand, you have one more option to edit the URL setting via your database. We are mentioning the steps so follow as said to fix the errors.
If you can reach your WordPress dashboard anyhow, then follow the below guidelines and fix the issue via admin area-
- Log in to your WordPress dashboard and then go to settings.
- The visit the general setting page and check your WordPress and site address.
- Confirm whether the URLs are organized correctly or not.
- If you edited any URL, make sure you save the changes by clicking “save changes”.
#Removing the cache of WordPress-
In any case, if the above two mentioned ways couldn’t fix the err_too_many_redirects issue. So, go with “deleting WordPress cache” technique.
- Sign in to your WordPress dashboard, click to plugins – add new.
- Then, click on the search bar search “WP fastest cache” and press install now- activate to set up the plugin.
- Seek for WP fastest cache option in the setting bar.
- On the Delete Cache icon, select the option indicates your necessity best.
- If the procedure goes well, you will get a confirmation pop up at the top of the page.
#Disabling corrupted plugins-
Corrupted and outdated plugin existence in your site can be another reason for err_too_many_redirects error message. To see, if this is the problem behind the error so disable all the installed plugins by manually editing its folder.
It can be done through the hosting provider own file manager or an FTP client, for example, FileZilla. To know more about it so go through the given below steps.
- Firstly, arrange your FileZilla client.
- Once you’re logged in, choose Remote Site. Reach to wp_content and discover the Plugins file — right-click to Retitle.
- Retitle the file to plugins_disabled and effort to browse your website. If the error notes no more visible, then one or more plugins are out of date.
- Retitle the file back to Plugins and eliminate your plugins one by one to observe which one is instigating the error. We suggest beginning with the one that was most recently installed.
#Disabling .htaccess file-
There is a likelihood that some variable in your .htaccess file is causing your website to go into a redirection loop. If you find that is the case which causing errors, you can disable your file to regain reach to your website.
- Using your hosting control panel, access the File Manager
- Then you have to locate .htaccess file
- Rename the file by right-clicking to .htaccess_disabled, for example:
- Go back to reload your website and check if it’s loading correctly now.
DIf this method works for you, by right-clicking check the .htaccess file’s configuration in the file and edit it. If the file is not looking like the default .htaccess configuration, then delete the file’s content immediately. Also, paste these default rules instead:
Name the file back to the original .htaccess, and you are good to go. If the file’s misconfigurations are causing the error, you can easily fix it by this easy-peasy method.
Caution: If you replace the previous .htaccess settings with the new one, it may cause breakage to the website settings. To avoid losing the original file and data, you should always make a backup of the file before making any changes.
In this article, we have learnt the different methods that can help us fix err_too_many_redirects, error on the WordPress Website. Let’s do a quick recall of the five methods.
- First Method: Delete all the cookies and browsing data of the Web browser.
- Second Method: Check the URL and manually edit its setting from the WordPress Dashboard.
- Third Method: Delete all the cache in your WordPress by using a plugin.
- Fourth Method: By using an FTP Client, disable the faulty plugins.
- Fifth Method: Through File Manager disable or edit .htaccess
This looks pretty easy, isn’t it? Tell us in comments below which method worked best for you!