Como Resolver ERR_TOO_MANY_REDIRECTS no WordPress

Online curriculum, how important is your application?
How the Sincerely Hatter found solutions to unemployment on the internet

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.

Example error err-too-many-redirects

What will you need

Before knowing how to solve the ERR_TOO_MANY_REDIRECTS, you will need the following:

  • Access to the control panel of your Hosting or FTP
  • Access to the area of WordPress Administrator (Optional)

Step 1 – Checking your URL settings

The first thing we should do while we solve the ERR_TOO_MANY_REDIRECTS  is to check the URL settings.

Option 1 – Checking URL settings by the administrator panel

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).

Checking details WordPress

If you have made any changes, be sure to click Save Changes at the bottom before leaving.

Option 2 – Checking / Changing the URL configuration manually

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:

  1. Go to the File Manager through your hosting control panel.
  2. Locate your wp-config.php file.
  3. Click Edit.Hostinger - edit settings in WordPress
  4. Add the following lines in the file and remember to replace the http://exemplo.com with the URL that your WordPress should have (For example, if you are installing the root directory (/ public_html /), use only your domain, but if you are in a sub – folder (/ public_html / wp) replace with the URL to the subfolder ( http://example.com/wp .) You can add the following lines at the end after the codes already present in the file:

    define ( 'WP_HOME', 'http: //example.com');
    define ( 'WP_SITEURL', 'http: //example.com');
  5. Be sure to save your changes by clicking on the icon Save .
  6. Visit your page to see if changing the URL of WordPress corrected the error Redirect Loop – ERR_TOO_MANY_REDIRECTS .

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 .

Step 2 – Disable its plugins

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:

  1. Access your File Manager through the Hosting Control Panel.
  2. Locate and access your folder wp-content. You will see the folder Plugins .
  3. Select the folder Plugins and choose Rename . Now rename your folder to p lugins_backup , for example, or any other name that is not Plugins . Do not worry, your plugins will be safe, you can rename the folder back to Plugins after finishing.rename the wordpress plugins
  4. Save changes by clicking the green icon Save .Fix Redirect errors by wordpress plugins

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 :
Remove ftp plugin

Step 3 – Disabling your .htaccess file

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.

  1. Go to the File Manager through your hosting control panel.
  2. Select your file .htaccess , click the right button and select Rename . If you can not find the file .htaccess , we have the exact guide for you.
  3. Rename your file .htaccess for anything else, can be .htaccess1 for example.
    Rename .htaccess wordpress in hostinger
  4. Access your domain and make sure your website loads normally.

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.

Conclusion

In this tutorial you learned three possible methods to fix your WordPress arise when the error Loop Forwarding ERR_TOO_MANY_REDIRECTS.