So you just received a “ERR_TOO_MANY_REDIRECTS” message on your WordPress site… now what? This error is confusing and does not offer any clear instructions for resolution or troubleshooting.
It’s not as complicated or confusing as you might think. This error message will tell you almost everything you need to fix the problem. You only need to have patience and the right tools.
On this page, we’ll explain what the ERR_TOO_MANY_REDIRECTS message means and why you’re seeing it. We will also show you how to troubleshoot the problem.
How to Fix ERR_TOO_MANY_REDIRECTS
There are a few ways to fix the ERR_TOO_MANY_REDIRECTS error. Each of these options can be used to fix the redirect loop issue. However, it is important to keep track of your steps to ensure that you can reverse any changes.
Here are six steps you can take to fix the WordPress too many redirects error.
Deleting browser data
Browser data sometimes stores corrupted cookies and outdated cache, causing the ERR_TOO_MANY_REDIRECTS error. It’s a good idea to delete your data history before you make any changes to your WordPress website.
These are the steps to follow in order to delete your browser’s cookies and cache:
- Chrome: Click on the three dots in the browser’s upper right menu to select Settings. Scroll down to Advanced and Clear Browsing Data. Click Clear data to view Cookies, Cached images, and files boxes.
- Mozilla: Click the upper-right button and select Options. Select Privacy & Security. Next, choose Clear Dataunder cookies and Site Data. Check all boxes and click Clear.
- Navigate to Safari > Preferences. Privacy:select All Website Data-> Now. You can also set your cache and cookie preferences here.
- Navigate to Microsoft Edge Cookies, and site permissions. Select Manage, delete and view site data. -> View all cookies and site information. Click on the Remove all button and then select Clear.
The URL Settings
If you are unable to resolve the problem by clearing your browsing data, make sure your WordPress URL settings are correct.
When webmasters make their WordPress site point to the wrong domain, or when they change domain names or migrate hosts, the error occurs.
This can be done via the WordPress admin dashboard, or manually.
Manually Changing URL Settings
Your WordPress admin area may not work if your website experiences too many redirect errors. You can change your URL settings by editing the file wp-config.php through File Manager or FileZilla.
We’ll show you how to modify the file using Hostinger’s Filer.
- Log in to hPanel, and then go to Manager under files.
- Find your file in the public_html directory and right-click to edit.
- The following lines should be added to the file. This is http://example.com.
After saving the changes, visit your site to check whether the URL change fixed the WordPress ERR_TOO_MANY_REDIRECTS error.
Edit URL Settings via Database
Alternatively, you can also edit URL settings through your WordPress database. This tutorial will demonstrate how to use PHPMyAdmin.
- You can find your WordPress database name using the file.
- Log in to the HPanel to navigate to PHPMyAdminunder Databases. Click the Enter PHPMyAdmin link next to the WordPress database.
- You can access the SQLtab area of the phpMyAdmin.
- Enter the following SQL query. Make sure to replace oldurl.com by the current WordPress address. Replace newurl.com by the new site address.
- UPDATE wp_options SET option_value = replace(option_value, ‘oldurl.com’, ‘newurl.com’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;UPDATE wp_posts SET guid = replace(guid, ‘oldurl.com’,’newurl.com’);UPDATE wp_posts SET post_content = replace(post_content, ‘oldurl.com’, ‘newurl.com’);<br><br>UPDATE wp_postmeta SET meta_value = replace(meta_value,’oldurl.com’,’newurl.com’);
- To execute the query, click Go. To check if there are too many redirects, open the WP-Options table.
- For more information, please refer to our tutorial How to Change WordPress URLs In MySQL Database Using phpMyAdmin.
- If your website file is in the default root folder (/public_html/), you can use the default (http://example.com/) URL. If it’s in a subfolder like (/wp/), then replace the URL with something like (http://example.com/wp).
Modifying URL Settings via Administrator Dashboard
You can also change URL settings through your WordPress dashboard. If you are able to log in to your admin dashboard, follow the steps below.
- From your WordPress admin dashboard, navigate to Settings.
- You can check your WordPress address (URL) as well as site address (URL) on the General Setting page.
Both URLs should be correctly configured.
Delete WordPress Cache
The cache can be stored in your browser, but it’s not the only place that could become corrupted. In some cases, the cache stored on your site may cause the WordPress ERR_TOO_MANY_REDIRECTS error. You can clear your cache by choosing one of the following options.
Use the WP Fastest Plugin
Fastest Cache plugin for freemium WordPress caching. The free version includes a caching feature that can be used to delete any caches on your website.
- How to clear your website cache with the WP Fastest Cache plugin
- Log in to your WordPress Dashboard. Go to Plugins-> Create New.
- To set up the plugin, search WP FastestCache and click Download Now-> . For more information on the best way to install WordPress plugins, please refer to our guide.
- Under Settings, look for the Fastest Cache button.
- Choose the option that best suits you from the delete cache tab.
- A confirmation message will be displayed at the top of your page if the process was successful.
Using WP Rocket Plugin
WP rocket premium WordPress cache plugin. WP Rocket is compatible with most themes, plugins and hosting providers. It also has features that follow best practices for web performance. Prices range from $49/year to $249/year.
These steps will help you clear your website cache with the WP Rocket plugin:
- Download the plugin license after you have purchased it. Upload the plugin file and then install it manually.
- Get the WP Rocket Dashboard.
- To clear all cached files, select Clear from the Quick actions menu.
Disable Corrupted plugins
Another problem that might cause the ERR_TOO_MANY_REDIRECTS error message is a corrupted or outdated plugin. Some WordPress plugins that use redirects may conflict with your server’s redirects.
- You can check if that is the cause of the problem by disabling all plugins and manually editing the folder.
- This can be done via your hosting provider’s FTP Client. The latter will be used here.
- First, configure your FileZilla client. We provide detailed instructions on to help you use FileZilla.
- After logging in, choose Remote Website. Navigate to WP_content to locate the plugins folder.
- Right-click on the folder to rename it plugins_disabled. Go to your website. If you don’t see the “Err Too Many Redirects” message, it is possible that one or more plugins have been corrupted or are out of date.
- To determine which plugin is causing the error, rename the folder to Plugins.
Disable the.htaccess File
Your website could be in a redirect loop because of a conflicting or faulty directive. Disabling the file will allow you to regain access to your site if that is the problem.
We’ll walk you through how to disable the .htaccess files via Hostinger’s File Management.
- Hostinger’s File Manager is available via Hostinger’s hPanel.
- Find your .htaccess.
- Right-click to rename the file. You can also use .htaccess_disabled or for example.
- Check now if the website loads correctly.
- It should work if it does. To check the configuration of your.htaccess file, right-click on it and select Edit. It should be identical to the default.htaccess configuration. If not, you can delete the contents and copy these default rules.
# BEGIN WordPress
RewriteRule index.php$ [L]
RewriteRule /index.php [L]
# END WordPress
You can rename the file to .htaccess, and you are done. This method will fix any misconfigurations that caused the redirect loop error.
You should always back up your .htaccess settings before you make any changes to your website.
Temporarily Disable the Content Delivery Network (CDN).
A third-party service installed on your host could also be causing a redirect loop error. It’s usually the CDN configuration. A network of proxy servers located in various locations to guarantee high website load speeds.
Redirect loops can be problematic if your CDN has its SSL option set Flexible. This means that it sends unencrypted requests directly to your site’s servers.
It will create a redirect loop if your website is set up to redirect all HTTPS requests to HTTPS using the flexible mode.
If this is the case, you can set the CDN’s SSL settings Full and Full (strictly) to resolve the problem if you have an active SSL Certificate. First, disable your CDN temporarily to confirm that it is causing the problem.
We will be using Cloudflare for the tutorial below. These are the steps to temporarily disable Cloudflare
- Navigate to the Overview Tab from the Cloudflare dashboard.
- Look at the Advanced Actions section in the lower right corner of the page.
- Select Cloudflare Site
- Hostinger is your hosting provider. To disable Cloudflare or fix the redirect loop, log into your hPanel. Here’s how it works:
- Navigate to the Cloudflaremenu on your hPanel dashboard.
- Next, disable the SSL/Encrypt communication settings and click Save.
It’s recommended that you clear the cache after disabling Cloudflare.