Error: cURL error 28: Operation timed out after 5002 milliseconds with 0 bytes received How to Resolve Error Too Many Redirects issue in WordPress - html5wp
How to Resolve Error Too Many Redirects issue in wordpress

 

Are you attempting to resolve the ‘Too Many Redirects’ error on your WordPress site?

It’s a typical WordPress problem produced by a plugin or wrong settings. It does, however, lock people out of their WordPress websites, which is very inconvenient.

We’ll teach you how to simply repair the ‘Error too many redirects’ issue in WordPress in this post. We’ll also go through how to get back into your website and fix the problem.

 

What Causes the WordPress Error “Too Many Redirects”?

 

A misconfigured redirection problem in WordPress causes the ‘Error too many redirects.’

WordPress, as you may know, has an SEO-friendly URL structure that makes use of the redirect function.

Many popular WordPress plugins also make advantage of this capability to create temporary redirects, permanent 301 redirects, and to remedy 404 issues.

If you’re using a plugin to remedy the SSL unsafe content issue or a WordPress caching plugin, it’s possible that they’ll mess with your redirects and create this error.

Too Many Redirects

This message, however, provides no information about what is creating the problem and driving the redirect loop in WordPress.

With the statement ‘The page isn’t redirecting properly,’ here is how the problem appears in Firefox.

Too many redirects error in Firefox

That being stated, let’s look at how to repair the WordPress problem of too many redirects.

We’ll take you step by step through debugging, gaining access to your WordPress site, and preventing the problem from happening again.

 

1. Clear all cookies and cache from your browser.

 

Cookies in your web browser are a typical source of this problem. Attempt to view your website using a different browser, such as Firefox, Safari, Opera, Microsoft Edge, and so on.

If you can visit your website normally using a different browser, your usual browser’s cookies and cache must be cleared.

Clear all cookies and cache from your browser

We have a comprehensive tutorial on how to clear browser cache in all main browsers that can assist you with this.

If changing the browser does not resolve the problem, proceed to the next step.

 

2. Deactivate All WordPress Plugins

A plugin conflict is the most prevalent cause of WordPress redirect loops or “too many redirects.” This error is caused by a plugin attempting to set up a redirect in a way that is incompatible with WordPress’s default redirects.

To resolve this, you must disable all WordPress plugins on your site. Normally, you would deactivate plugins by going to Plugins » All Plugins in the WordPress admin area.

Screenshot 11

We assume, however, that you are unable to enter the WordPress admin area as a result of the redirect issue.

In such situation, you’ll need to use an FTP client or the File Manager tool in your WordPress hosting control panel to deactivate WordPress plugins.

Simply use an FTP program to connect to your website and navigate to the /wp-content/ folder.

Renaming the plugins folder using FTP

You’ll see the plugins folder there, which you’ll need to change to ‘plugins.deactivate’ to disable WordPress plugins.

Switch back to the FTP client or File Manager program and rename your plugins to figure out which one was the cause. Rename the folder to ‘plugins’ and disable it.

After that, navigate to the Plugins > All Plugins page in the WordPress admin section of your website. You may then activate your plugins one by one and visit your website to see whether the problem can be reproduced.

Once you’ve identified the plugin that’s causing the problem, you can either locate a replacement or report the problem to the plugin’s support forum.

Renamed plugins folder

To load the plugin files, WordPress looks for a folder called plugins. When it can’t discover the folder, it disables the database’s active plugins automatically.

You may now go to your WordPress website and look around. If you can now log into your WordPress admin area, it’s likely that one of the plugins was the source of the problem.

3. Fix WordPress URLs

A misconfiguration in WordPress URL settings is another common reason of this problem. These options are normally accessible via the Settings » General page.

WordPress URL settings

The URLs in the WordPress Address and Site Address fields must be same for most websites. Some users, on the other hand, may use www in one URL and non-www in the other.

You may need to use an FTP client or the File Manager app to fix the WordPress URLs since you may not have access to the WordPress admin area.

Using an FTP client, navigate to /wp-content/themes/your-theme-folder/ on your WordPress site.

Edit functions.php file

Locate the functions.php file and modify it with a basic text editor such as Notepad or TextEdit.

The next step is to add the following code at the bottom of the page:

 

1

2

update_option( ‘siteurl’, ‘https://example.com’ );

update_option( ‘home’, ‘https://example.com’ );

 

Remember to replace https://example.com with the URLs for your own site. Now you may save your modifications and republish the file on your website.

After that, try visiting your website to see whether the error has been resolved.

 

4. Reset WordPress .htaccess File

The.htaccess file is a unique file that internet servers use to control redirection and other server settings. This file is also used by WordPress to create SEO-friendly URLs and other redirects.

WordPress plugins might sometimes make modifications to your website’s.htaccess file, resulting in this error. It’s also conceivable that deactivating a plugin will leave such modifications in your.htaccess file.

You’ll need to manually reset your WordPress.htaccess file in that instance.

You’ll need to use an FTP client or the File Manager software in your hosting dashboard to access your website once more. You’ll find the.htaccess file in the root folder of your website once you’ve connected.

Editing .htaccess file via FTP

Following that, you may delete the file from your website. Try accessing your WordPress blog immediately, and if everything works normally, your.htaccess file was the source of the redirect problem.

Now that the.htaccess file has been destroyed, you must reconstruct it. Your WordPress website should normally do it on its own, but you can double-check by going to Settings » Permalinks and clicking the ‘Save changes’ button at the bottom.

5. Preventing Error Too Many Redirects in WordPress

 

Hopefully, the methods outlined above resolved the redirect problem on your website. If they don’t repair the problem, you’ll need to contact your WordPress hosting company to make sure it’s not a server issue.

You should discover out what caused the problem once they solve it on your site.

If the problem was caused by a plugin, you must report it to the plugin’s support forum. See our tutorial on how to request WordPress help. If you can’t obtain support, you may always look for an other plugin that accomplishes the same thing.

If the problem was caused by a WordPress site misconfiguration, make a note of it and double-check that your site’s settings are correct.

See our thorough tutorial on how to troubleshoot WordPress issues like a real WordPress guru for more information.

 

 

img
Facebook Group

User discussion forum

img
Support Desk

Have questions or need help?

img
Documentation

Articles that cover common questions.