How to Fix Error Too Many Redirects Issue in WordPress
Your WordPress site encounter too many redirects error because of incorrect configuration of the website URL or some plugins installed in your blog. It is the common error same as error establishing a database connection and can be fix easily. In this tutorial you will learn how to fix error too many redirects issue in WordPress blog.
Cause of Error Too Many Redirects in WordPress
Generally, this error occurs due to the incorrect configuration of your website URL on your WordPress settings which leads to redirect loop. As WordPress uses redirect function which optimize your blog’s URL for search engines, some plugins also uses the redirect functionalities which may conflict with one another and cause error too many redirects issue.
Time needed: 10 minutes.
How to Fix Error Too Many Redirects Issue in WordPress?
- Check your Site Address (URL)
- Deactivate the Plugins.
Step-1: Check your Site Address (URL)
If your Site Address (URL) is not configured correctly then surely this error occurs due to the incorrect configuration of website URL.
If you are able to login to your WordPress admin panel then check the site URL configuration going to the Settings then General and replace with the correct URL.
You will find WordPress Address (URL) and Site Address (URL) which may not have configured correctly. For example if your website URL is configured as http://yourblog.com (without www) by your hosting provider then you cannot use http://www.yourblog.com (with www) in those fields.
You need to change http://www.yourblog.com to http://yourblog.com in both WordPress address and Site Address box to resolve error too many redirects issue.
If you are unable to access WordPress admin panel then you can change these site address using FTP client FileZilla adding few line of codes in wp-config.php file.
Connect FileZilla to the web server and open root directory e.g. public_html where you will find wp-config.php file. Right click on wp-config.php file and click on view/edit.
Now, you are in file editor such as Notepad where you have to add two line of codes shown below replacing http://yourblog.com to your own blog address. After adding the code save the changes and close the file editor you will see the message to upload the edited files back to the server. Click on OK button to upload.
If this fix the error then you know your server is configured without www prefix but if the error still occurs then you have to try adding www prefix in your website URL instead without www prefix.
Step-2: Deactivate All the Plugins
If changing Site Address did not fix the issue then you may certainly stuck because of the plugins. You can deactivate all the installed plugins to find out which plugins is causing the error from your WordPress dashboard. Click on Plugins then Installed Plugins check the box before the plugins then choose deactivate from the drop-down and click on apply button.
Now, Reload your website and see whether the error is fixed or still there. If the error is fixed you need to activate the plugins one by one until you find the plugin that is causing the issue. If you are unable to access WordPress admin panel you need to deactivate WordPress plugins manually.
If this didn’t fixed the issue then you should contact your hosting provider to configure your website correctly. Many best website hosting providers helps you to fix any issue related to your website but some may denied. If your hosting provider denied to help you should switch your hosting provider that gives immediate support and guarantee server performance.