Problem : How to Fix Too Many Redirects Error in WordPress

Problem : How to Fix Too Many Redirects Error in WordPress

Too Many Redirects Error in WordPress can be caused with simple settings gone wrong and it may be caused by few other mistakes. In this article, you will learn about how we can fix this issue even if you are not able to access WordPress Admin area.

If you are a beginner to WordPress, don’t worry it will be simple and easy to fix this issue. Just follow these steps.

Why You are getting Too Many Redirects Error in WordPress.

This error may be caused by simple misconfiguration of settings or because of few other issues. If the URL you are accessing is caught in a continuous redirect loop then you will get this error.

That is if you are accessing your website http://example.com and it redirects to http://www.example.com and then this will be redirected to without www. It continues the loop, browser loops through these 2 links for multiple times. After certain time browser times out and gives “Too Many Redirects Error” on to the browser.

What is Problem behind Too Many Redirect Error

These are the few possibilities to get “Too Many Redirects Error”. Most of the times, it’s easy to fix this issue because of misconfigured settings.

  • Misconfiguration of Settings
  • Redirect Loop with Plugins
  • Redirect Problem with .htaccess

These are the cases that can cause the redirect issue in WordPress. We will go through one by one to solve too many redirects problem on your WordPress website

1. MisConfiguration of Settings

This is the most common issue for “Too Many Redirects” problem. In WordPress admin area, you should use the same URL. That is in WordPress Address (URL) field and Site Address (URL) field.

If you are using www URL in one field you are using non-www URL in another field this will cause the issue and don’t even use the extra slash for one field. You should maintain both fields URL consistently.

Here is an example screenshot of my blog, your settings page should look similar to your URL.

WordPress URL Settings

WordPress URL Settings under General Settings

If you are not able to access WordPress Admin area because of “Too Many Redirects” error. Open wp-config.php through cPanel or FTP program like FileZilla.

Add the code, before this line with this commented line.

Copy and paste these two lines of code above the commented line. And update URL with your website URL.

Save the wp-config.php and reload your website in the browser, your problem should be resolved. If it’s not resolved continue with next steps.

2. Redirect Loop with Plugins

If the above solution not resolved your issue. Then this problem may be caused either with plugins of with htaccess file (If you edited htaccess file, then move to next step else continue with this step).

If your entire website is working and only single URL or some URL’s are getting this issue. Check whether you are using any plugin for redirection. Then cross check the URL is created anywhere else.

For example, if you are using any plugin for removing category base in category URLs. And you created the same URL with the path as this category. In this case, you may get this problem. Check the URL’s and delete the other URL, so this will solve the issue.

If you are getting “Too Many Redirects” to the entire website. Then you should deactivate all the plugins. If you reload your website it should work now. If you are getting same issue move to next step. If your website is working then you should find out the plugin that is causing the issue.

Now, activate plugins one by one, after activating the plugin reload the website in the browser. After activating plugin if you are getting “Too Many redirects issue”. Then the last activated plugin is the problematic plugin.

Try to contact the plugin developer regarding that issue or search for the issue online with that plugin.

3. Redirect Problem with .htaccess

Even after trying the above solution, if your issue hasn’t resolved then you are having a problem with htaccess file or with some rules in htaccess file. We will see in this step how we can solve this issue.

Open htaccess file with cPanel or FTP program, keep backup of existing rules in an new file incase if you have custom rules. Copy and paste default htaccess code from WordPress Codex.

After adding the above code and saving htaccess file, access your website. Your website should work as it is.

Now add custom rewrite rules into htaccess, don’t copy and paste all the custom rules at a time. Add one rule at a time and reload website in the browser. At a point, you should spot the problematic rewrite rule. Try to fix that rule or take an expert help.

You should be good to go and your “Too Many Redirects” issue should be resolved.

Conclusion

Don’t get panic when facing this kind of errors, you can always take expert help when you are not able to solve the issue or you can slove it on your own by following this step by step guide. I hope this article helped you to solve the issue.

Let me know through the comment form which step solved your issue. If you are not able to solve the issue after following these steps.

Let me know your problem through the comment, I’ll help you to fix this issue.


https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1829 9fHFLyyyOmabVjS6k-jGn1LOQpmzWJQhNon5oKyPdhkT2Kc0hnTG5Q9W4eWmMjdR bd618c20397eaf3cc08317cb1f40e409cd3fa654&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme
Vivek Vengala
 

Vivek Vengala is a Online Entrepreneur, Web Developer from Hyderabad India.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: