• Our Story
  • Work | Our Services
  • Contact
  • SEO Blog
Commander SEOCommander SEO
  • Our Story
  • Work | Our Services
  • Contact
  • SEO Blog
How to Fix Error Too Many Redirects

How to Fix Error Too Many Redirects Issue in WordPress

December 30, 2022

Are you trying to fix your WordPress site’s “Error Too Many Redirects” problem?

This is a fairly typical WordPress problem that might have been brought on by a plugin or by wrong settings. It locks people out of their WordPress sites, which is a big issue.

In this blog post, we’ll show you how to easily fix the ‘Error too many redirects’ problem in WordPress. We will also talk about how to get back into your website and resolve the issue.

What Causes The Error Too Many Redirects Issue in WordPress?

The “Error too many redirects” message comes up because WordPress has a problem with how redirections are set up.

As you know, WordPress uses a redirect function as part of its URL structure that is good for SEO.

In the same way, this feature is used by many popular WordPress plugins to set up temporary redirects, permanent 301 redirects, and to fix 404 errors.

Error Too Many Redirects Example

This is what the error looks like with the message “This page isn’t working.”

This error may appear if you are utilizing a plugin to repair SSL unsafe content, or a caching plugin for WordPress.

But this error does not tell you what is causing the conflict and forcing WordPress to do the redirect loop.

Let’s check out why WordPress is throwing an “error too many redirects” message and how to repair it.

We’ll show you step-by-step how to fix the issue, get into your WordPress site, and fix the error so it doesn’t happen again.

1. Clear Browser Cookies and Cache

Very likely your web browser’s cookies could be the cause of the error. Try using a different web browser, like Firefox, Safari, Opera, Microsoft Edge, etc. to get to your site.

If you can get to your website normally with a different browser, you simply need to clear your regular browser’s cookies and cache.

Clear Cookies in Browser

Proceed to the following step if switching browsers does not solve the problem.

2. Deactivate All WordPress Plugins

Typically a problem with too many redirects or loops in WordPress is caused by a conflict between plugins. This error would happen if a plugin tried to set up a redirect in a way that didn’t work with the default WordPress redirects.

To solve this problem, you must temporarily disable all WordPress plugins. You can usually deactivate plugins by going to the Plugins » All Plugins page in the WordPress admin area.

Deactivate Plugins Example

But since the redirect error occurred, we’re guessing you can’t go into the WordPress backend right now.

In such situation, you may disable plugins using your web hosting cpanel File Manager or an external FTP client like Filezilla or Cyberduck.

Just use an FTP client to connect to your website and go to the /wp-content/ folder.

There you’ll find the plugins folder, which you’ll need to rename to “plugins.temp” to turn off WordPress plugins.

To load the plugin files, WordPress basically looks for a folder called plugins. When it can’t find the folder, it automatically turns off the plugins in the database that are currently running.

You can now try accessing your WordPress site. If you can now get into your WordPress admin area, the error was caused by one of your plugins.

ErrorRedirects Rename Plugins

After that, go to the Plugins » All Plugins page in the WordPress admin area of your website. From here, you can turn on each plugin one at a time, and then go to your website to see if the error persists.

The next step is to either replace the problematic plugin with a known good one or report the error to the plugin’s support forum.

3. Fix WordPress URLs

A misconfiguration in the WordPress URL settings is another common reason for this problem. You can usually find these settings on the Settings » General page.

General Settings URL

The Site Address and WordPress Address fields should both include the same URL. Some users, though, may end up using www in one URL and not using www in the other.

Since you might not be able to get into the WordPress admin area, you might need to use an FTP client or the File Manager app to fix the WordPress URLs.

Just use an FTP client to connect to your WordPress site and go to /wp-content/themes/your-theme-folder, we need to modify a PHP File.

Get a simple text editor like Notepad or BBEdit and navigate to where the functions.php file is stored.

The following code has to be appended at the end:

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

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

Don’t forget to replace https://onlyanexample.com with your own site URLs. You can now save your changes and upload the file back to your website.

After that, you can try visiting your website to see if this resolves the error.

4. Reset WordPress .htaccess File

A website’s server uses the htaccess file for redirection and other server settings. This file is also used by WordPress for redirects and URLs that are good for SEO.

WordPress plugins can change the htaccess file of your website, which can cause this error. There’s also a chance that removing a plugin won’t get rid of the changes it made to your htaccess file.

Then you’ll have to reset your WordPress htaccess file manually.

Again, you will need an FTP client or the cpanel File Manager app in your hosting dashboard to get to your site. Once you’re connected, the htaccess file will be in your website’s root folder.

Delete htaccess

 

Make sure you have a recent backup of your htaccess file on your computer!

Once that is done, you can remove the file. You can now try to visit your WordPress site. If everything works as it should, this means that the redirect error was caused by your htaccess file.

Settings Permalinks

Since we just got rid of the htaccess file, you for sure need to make a new one. Go to the Settings » Permalinks page and click ‘Save changes’ option at the bottom, just to make sure that WordPress creates a new htaccess file.

5. Preventing Error Too Many Redirects in WordPress

We hope that the steps above have fixed the problem with your website’s redirect. If they didn’t fix it you may need to talk to the support team of the company that hosts your WordPress site to make sure it’s not a server problem.

Once the problem on your site has been resolved, you should investigate the root cause.

If it was a plugin, you need to tell the plugin’s support about the issue. If you can’t get help from the developer, you should look out for another plugin that does the same thing.

If the error was caused by a mistake in how your WordPress site was set up, you can write it down and make sure that your site settings are correct.

Hopefully, we explained how to fix Error too Many Redirects and you can now back login to your WordPress Site. Happy Editing!

 

Contact us
markus-seo

Markus Schad | Senior SEO Strategist

Markus Schad is Senior SEO Consultant with over 8 years experience in getting more traffic and visitors for his customers. He is the founder of Commander-SEO.com.

Our other Blog posts

wordpress 6.1.1 update | what is a contributor in WordPress

What is a Contributor in WordPress?

December 21, 2022

Welcome to our blog post on the Contributor user role in WordPress! What is a Contributor in WordPress?  If you’re a

Read More »

6 Top Places to Hire WordPress Developers

March 5, 2023

Sometimes you need the help of a WordPress Professional. As WordPress is so widely used, there is no shortage of

Read More »
ada032c3 8b21 4dfb 99e2 160646b112c8

Top 10 Mistakes Small Business Owners Make When Using SEO

February 24, 2023

Know Which Common SEO Mistakes to Avoid to Grow Your Local Business In spite of the importance of search engine

Read More »
There is nothing to show here!
Slider with alias none not found.
Share
0

Recent Posts

  • 6 Top Places to Hire WordPress Developers
  • Top 10 Mistakes Small Business Owners Make When Using SEO
  • FREE AI Chatbot For WordPress using ChatGPT

Table of Contents

Commander-SEO.com – Your SEO Expert.

Facebook Twitter

© 2023 · Commander-SEO