When you are developing a site in WordPress, you may have to face some mistakes along the way. One of the most popular is the error ERR_TOO_MANY_REDIRECTS.
Google Chrome browser the same error is displayed as This web page has a redirect loop and Firefox would appear as the page is not being redirected correctly .
This error means that there is a problem in the WordPress configuration that makes your site enter a redirect loop and keep redirecting one page to another. Usually this error is caused by WordPress plugins. But no need to worry because we have a quick and easy solution to this problem.
Content
Before knowing how to solve the ERR_TOO_MANY_REDIRECTS, you will need the following:
The first thing we should do while we solve the ERR_TOO_MANY_REDIRECTS is to check the URL settings.
In the area of WordPress Admin, click Settings . Its general configuration will appear as the default. Check your WordPress address (URL) and the website address (URL) . Make sure that the URL you see is correct. If the WordPress installation is located in a sub-folder (as in the example below, the folder is located / public_html / wp / so that the URL be as www.exemplo.com/wp).
If you have made any changes, be sure to click Save Changes at the bottom before leaving.
It is possible that you can not log into your Admin area of your WordPress installation. In this case, you can change your URL settings with the help of your file wp_config.php . You can edit the file using the File Manager or by downloading the file, editing and resubmitting the updated file via your FTP client . In this example, let’s edit the file through the file manager:
define ( 'WP_HOME', 'http: //example.com'); define ( 'WP_SITEURL', 'http: //example.com');
IMPORTANT: Do not forget to change the exemplo.com for your domain.
Alternatively, you can edit the settings for your URL through your database, for this we have this tutorial in English .
Another reason why the error ERR_TOO_MANY_REDIRECTS occurs may be an outdated plugin / corrupted. It may be a good idea to disable it and try to regain access to your site, as well as solve the problem. In Hostinger and other WordPress hosting providers, you can disable your plugins quickly and easily:
After renaming the folder plugins try to access your site. If the error is resolved, chances are one or more plugins are out of date or corrupted. Try removing the latest plugins and rename the folder back to Plugins .
You can remove plugins through your File Manager / FTP accessing the folder wp-content / plugins and deleting the plugin folder you want to remove. In the following example, we will delete the WooCommerce Plugin through the Manager of files . Simply select the plugin you want to remove and click Delete :
Another possibility is that some setting in your file. .htacess is causing your site to enter a redirect loop. In this case, you can disable .htaccess file to regain access to your site.
In this case, if your site works, you can check the configuration files .htaccess . Do this by clicking on the option Edit . If you are not sure how it should be, consider using the default setting .htaccess :
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^ index \ $ php - [L] RewriteCond% {REQUEST_FILENAME}! -f RewriteCond% {REQUEST_FILENAME}! -d RewriteRule. /index.php [L] </ IfModule> # END WordPress
Simply delete all the contents of the .htaccess file and paste these codes above. When finished, rename the .htaccess1 back. .htaccess . If your site works with this default rule, this confirms that the problem was caused by a misconfiguration .htaccess.
IMPORTANT: As your site may stop working because of these changes, you should always perform a backup of the original .htaccess file before making any changes. Also note that if you choose to replace your configuraçẽos file. .htaccess , some of your permalinks, plugins and settings may stop working.
In this tutorial you learned three possible methods to fix your WordPress arise when the error Loop Forwarding ERR_TOO_MANY_REDIRECTS.