URL redirects are essential when it’s essential change the addresses of an internet site web page completely or quickly.
Nevertheless, because of this, generally your web site can get caught in a redirection loop.
If this occurs, it’s possible you’ll face the ERR_TOO_MANY_REDIRECTS error, stopping you from accessing particular pages.
The issue normally lies inside your web site, browser, server, or third-party plugins or applications. Happily, redirection points can sometimes be mounted by following a troubleshooting workflow. When you recognize what to do to diagnose the reason for the error, you’ll be able to clear up it comparatively shortly.
On this article, we’ll take a look at widespread causes of the “too many redirects” error, each on-site and off-site, and easy methods to repair every. Plus, we’ll clarify easy methods to forestall the issue from taking place once more sooner or later!
What Causes ERR_TOO_MANY_REDIRECTS In WordPress?
The “too many redirects” error occurs when your WordPress web site will get caught in an infinite redirect loop.
A redirect loop is when an internet server repeatedly sends a browser to the identical web page time and again, stopping it from loading the supposed web page.
When this continues, your browser could set off the error and fail to load the location.
This error seems totally different relying on the browser you utilize.
For instance, in Google Chrome, it normally says one thing like “This web page isn’t working,” stating too many redirects as the difficulty and exhibiting the ERR_TOO_MANY_REDIRECTS code.
In the event you use Mozilla Firefox, the error normally reads as “The web page isn’t redirecting correctly.” It normally shows as “Safari Can’t Open the Web page” for Safari customers and can let you recognize the reason being due to too many redirects.
Not like another widespread WordPress errors, the “too many redirects” difficulty doesn’t normally clear up itself.
So that you’ll have to troubleshoot the origins of the issue to repair it. Right here’s how.
How To Remedy The “Too Many Redirects” Error (13 Strategies)
Numerous elements may cause the “too many redirects” error. Some could also be inside your WordPress website, however you’ll probably have to go down a number of totally different paths earlier than you observe down and finally clear up the difficulty.
So with that in thoughts, let’s check out a complete listing of many of the attainable options.
1. Pressure A Web page Refresh
The primary answer is a quite simple one. You may power your browser to refresh and retrieve a brand new model of the web page. This methodology overrides any saved information and shows the newest data obtainable for the WordPress web site.
You may like to do that methodology first as a result of it’s fast and received’t intrude with every other methods. You’ll additionally know right away if it has mounted the issue or not.
You should utilize the next keyboard shortcuts to power a refresh in your browser:
- Google Chrome (Home windows): Ctrl + F5
- Google Chrome (Mac): Command + Shift + R
- Safari: Command + Possibility + R
- Firefox (Home windows): Ctrl + F5
- Firefox (Mac): Command + Shift + R
That’s all it’s essential do. If this easy methodology doesn’t work, you’ll be able to proceed by way of the troubleshooting information.
Get Content material Delivered Straight to Your Inbox
Subscribe to our weblog and obtain nice content material identical to this delivered straight to your inbox.
2. Delete Cookies On Your Website
Cookies are small blocks of knowledge that allow web sites to recollect details about your go to. Then, the websites use that information to hurry up and customise your experiences.
For instance, an e-commerce platform may ship you on-site suggestions primarily based in your earlier purchases and searches. This fashion, you’ll have the ability to save time when searching for associated merchandise.
Nevertheless, cookies can generally maintain onto incorrect information. In flip, this could trigger the “too many redirects” error. When this happens, it is best to attempt deleting cookies from the WordPress website.
In Google Chrome, click on on the three dots throughout out of your deal with bar and go to Settings.
Within the left sidebar, go to Privateness and safety (the sidebar could also be collapsed, hit the three-line menu to open it). On that web page, choose the Third-party cookies choice.
On the following web page, choose See all website information and permissions.
This can open a listing of all of the totally different websites storing cookies. Seek for your web site and use the garbage can icon subsequent to it to delete the info it’s storing.
When you’re finished, refresh the WordPress website to see if the error is mounted.
Associated: WordPress Settings Overview
3. Clear WordPress Website Or Server Cache
Caching shops data about your website so it may possibly load sooner the following time you entry it.
The draw back is your cache can maintain onto outdated information and trigger a redirection error. Subsequently, you’ll be able to attempt clearing out the saved data to see if it fixes the issue.
In the event you can entry your WordPress website, you’ll be able to attempt to clear your WordPress cache with a devoted caching plugin like WP Tremendous Cache.
Nevertheless, the redirection error will probably forestall you from attending to your dashboard. Subsequently, you may have to attempt clearing your server cache.
In the event you’re a DreamPress buyer and have a shell account, you’ll have to log into your area with Safe Shell (SSH) protocol.
Then, you’ll be able to enter the next code to purge your cache:
curl -X PURGE “http://yourwebsite.com/.*” ; wp cache flush
When you’ve cleared out the cache, attempt reloading your website. If that doesn’t work, it’s possible you’ll have to attempt one other methodology.
4. Clear Browser Cache
Your browser additionally shops cached details about the web sites you go to, together with your personal. In case your browser is holding onto outdated information, it’s possible you’ll have to clear it out to repair the redirection error in WordPress.
In the event you’re working with the Chrome browser, you’ll be able to head again to Settings > Privateness and safety. Right here, click on on Clear searching information.
This can deliver up a brand new window that allows you to decide on the info you need to delete together with searching historical past, browser cookies, and so forth. Choose every merchandise by checking the field subsequent to it after which click on on Clear information.
You’ll want to make use of barely totally different strategies should you’re working with a unique browser.
While you’re finished, attempt reloading your website to see if the “too many redirects” error has gone.
5. Decide The Trigger Of The Redirect Loop
If the sooner strategies didn’t clear up the redirection error, it’s essential try to diagnose the underlying downside. In any other case, you may spend a whole lot of effort on extra time-consuming methods that also could not repair the error.
There are a few totally different strategies you should utilize to find out the reason for redirect loops.
Firstly, you’ll be able to enter your website’s URL into the Redirect Checker device.
This free on-line software helps you to enter a number of URLs and test their statuses. You too can specify the consumer agent, resembling your browser, search engine bots, and cell gadgets.
When you enter your URL, you’ll be able to see any standing or error codes related along with your website on the backside of the web page.
Alternatively, some browser add-ons can present you the character of redirects on totally different websites. For instance, the Redirect Path Chrome extension flags redirect error messages in actual time.
Sadly, these instruments won’t all the time let you know why your redirect error is going on. If so, you’ll be able to proceed with the opposite methods on this troubleshooting information.
6. Quickly Disable WordPress Plugins
WordPress plugins are useful instruments that may introduce new functionalities to your web site. Nevertheless, these add-ons may also trigger points, such because the “too many redirects” error.
Anybody can develop and share WordPress plugins. As such, it’s possible you’ll by chance obtain one which incorporates defective code. These add-ons even have frequent updates. In the event you haven’t up to date your plugins, they might even be inflicting issues in your website.
Do that methodology should you just lately added new plugins to your WordPress website. Even should you don’t suspect a selected plugin, you should utilize the next steps to handle the difficulty.
In the event you can’t entry your WordPress website, you’ll have to entry the plugin recordsdata by way of a Safe File Switch Protocol (SFTP) software like FileZilla.
(You might also have the ability to entry your website recordsdata by way of your host’s file supervisor.)
When you’ve linked the SFTP shopper to your website, you’ll want to search out the folder that holds your plugins. You’ll normally discover it below area of your website > wp-content > plugins.
Right here, you’ll see a sequence of folders with the names of your put in plugins.
Rename the plugins folder to “plugins-off”. This can deactivate your entire plugins. It’s best to now have the ability to entry your WordPress admin dashboard.
Subsequent, rename your plugins folder to its unique title. Then undergo the method of reactivating every add-on out of your WordPress dashboard (Plugins > Put in Plugins) to see which one throws the “too many redirects” error.
In the event you discover an issue plugin, maintain it deactivated and discover an alternate choice to your web site within the WordPress plugin listing.
7. Verify WordPress Website Settings
Generally an error in your WordPress website settings may cause redirect loops.
For instance, your web site may be pointing to the mistaken area identify to your website recordsdata. This extra generally occurs should you’ve just lately migrated your web site.
You may test your website settings in your WordPress dashboard.In the event you can entry it, log in and head to Settings > Common.
You’ll then see two fields for WordPress Deal with (URL) and Website Deal with (URL).
These two addresses ought to be similar until you need WordPress to have its personal listing.
If the URLs don’t match and they need to, you’ll be able to change the settings manually. To do that, you’ll have to edit your website’s wp-config.php file.
Entry your web site utilizing SFTP as you probably did beforehand. Then, find and open the wp-config.php file in a textual content editor.
Subsequent, you’re going to stick the following code into the file:
outline( 'WP_HOME', 'http://instance.com' );
outline( 'WP_SITEURL', 'http://instance.com' );
Change the instance URLs above with the right ones and save the file. Then reload your web site and see if this solved the issue.
8. Verify SSL Certificates
In the event you’ve just lately migrated your website to HTTPS, there are numerous steps it’s essential full.
Sadly, should you miss a few of them or misconfigure some settings, you may set off the “too many redirects” error in WordPress.
For instance, should you didn’t set up your Safe Sockets Layer (SSL) certificates appropriately, it might be inflicting issues. In the event you didn’t add it in any respect, your website would robotically get caught in a redirect loop.
SSL/TLS
SSL stands for Safe Sockets Layer. Briefly, it’s a protocol for sustaining a safe connection and defending delicate information. Transport Layer Safety (TLS) is the successor to SSL. It’s a cryptographic protocol that gives a secure connection over any given laptop community.
Nevertheless, there may additionally be some minor points along with your SSL certificates set up. For instance, you may need incorrectly put in the intermediate certificates that work collectively along with your principal one.
You may test in case your SSL certificates is appropriately put in utilizing a device such because the Qualys SSL Server Check.
This software scans your area to search out any related SSL points. This course of can take a couple of minutes, however it would warn you to any issues along with your certificates set up.
9. Replace Exhausting-Coded Hyperlinks
In the event you’ve simply switched from HTTP to HTTPS, you’ll have to redirect your hyperlinks. In any other case, these URLs will level to places that now not exist in your web site.
Many customers make the most of plugins that may change these hyperlinks robotically, resembling Higher Discover and Change.
However it may be dangerous to make use of an add-on. In case your chosen plugin has any points with its code or updates, it may possibly misconfigure your redirects and set off the “too many redirects” error.
We advocate that you just manually replace your hard-coded hyperlinks. You are able to do this with the search and exchange methodology in WordPress.
We’ve an entire information on easy methods to change your WordPress URLs. In the event you’re a DreamHost buyer, you can too attain out to our Technical Assist staff for help.
10. Verify For HTTPS Redirects On Your Server
HTTPS redirect guidelines may also trigger the “too many redirects” error in WordPress. These server settings could have been misconfigured if you migrated your website.
For instance, your HTTPS settings might not be appropriately redirecting your hyperlinks. As such, you’ll have to amend them.
To find out your methodology, first you’ll have to know which server kind your host makes use of.
In case your website makes use of an Apache server, you’ll have to edit your .htaccess file.
Find it inside your SFTP shopper and open the file in a textual content editor. Then, you’ll be able to enter the following code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
This code will trigger all HTTP hyperlinks to redirect to HTTPS robotically. Save the .htaccess file if you’re finished.
To regulate your HTTPS redirects on Nginx servers, you’ll have to ask assist that will help you modify the config file. Have them insert the following code to arrange your redirects:
server { hear 80; server_name area.com www.area.com; return 301 https://area.com$request_uri; }
As soon as that has been put into place, reload your WordPress website.
If it doesn’t repair the issue, you recognize the drill — maintain shifting by way of the troubleshooting steps on this information.
11. Verify Third-Occasion Service Settings
In the event you use a third-party service resembling a content material supply community (CDN) or internet software firewall (WAF) like Cloudflare, its settings could trigger the “too many redirects” error.
CDN
CDN is an abbreviation for “Content material Supply Community”. It refers to a geographically-distributed community of internet servers (and their information facilities). The entities that make up a CDN collaborate to make sure speedy content material supply by way of the web.
Cloudflare can set off the “too many redirects” error in case you have the Versatile SSL setting enabled and an SSL certificates from one other supply (resembling your internet hosting supplier).
On this situation, your internet hosting server requests are already redirecting URLs from HTTP to HTTPS. Nevertheless, with the Versatile SSL setting, all server requests are being despatched in HTTP. This causes redirection loops to occur between the totally different processes.
That’s why we don’t advocate utilizing the Versatile SSL setting in case you have an SSL certificates from a third-party supply. As a substitute, change your Cloudflare encryption mode and select both Full or Full (strict). Doing so will robotically ship requests in HTTPS.
Moreover, it’s possible you’ll prefer to allow the “All the time Use HTTPS” rule in Cloudflare. This forces your website to ship all requests by way of HTTPS. Subsequently, it avoids inflicting a redirect loop and triggering the WordPress error.
Lastly, double-check that you just’ve appropriately configured your redirects in Cloudflare. For instance, you’ll need to make sure that your area doesn’t redirect to itself. In any other case, it may possibly set off a redirect error.
12. Verify Redirects On Your Server
We already lined easy methods to test for HTTPS redirects in your server. Nevertheless, different redirects can set off an error when loading your WordPress web site.
For instance, you may need a 301 redirect misconfigured. It may be pointing to the unique hyperlink, triggering a redirect loop that stops your website from loading. You may normally discover redirects resembling this by checking your config recordsdata.
In case your website makes use of an Apache server, you’ll have points along with your .htaccess file. We advocate creating a brand new one with default settings.
Apache
’Apache’ is the abbreviation of ‘Apache HTTP Server’. This can be a free and open-source internet server software program that delivers content material. Its main perform is to determine a connection between a server and a browser by way of HTTP requests.
First, you’ll have to entry your website by way of SFTP. Discover the .htaccess file and save a replica of it, in case any errors are made. You are able to do this by renaming it to one thing like “.htaccess_old”.
Subsequent, you’ll have to make a brand new .htaccess file. Put the following code into it to determine default settings:
# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Save the file and check out reloading your WordPress website. If this course of works, you’ll be able to delete the previous .htaccess file and maintain working with the brand new one.
In case your website makes use of an Nginx server, you’ll have to observe a barely totally different course of. This server kind makes use of a wide range of totally different config recordsdata, relying on the internet hosting supplier. We advocate reaching out to your host to see which one applies to your state of affairs.
13. Contact Your Internet Internet hosting Supplier
In the event you’ve tried all of those strategies and you may’t repair the “too many redirects” error, it may be time to get some assist. You may be lacking an important step, or there might be a deeper difficulty along with your WordPress website.
By contacting your hosting supplier, you may get quick help with the error. For instance, DreamHost prospects can contact our Technical Assist staff.
Associated: The Final Information To Internet Internet hosting
How To Forestall ERR_TOO_MANY_REDIRECTS In The Future (3 Methods)
If you wish to forestall the “too many redirects” error, there are a number of steps you’ll be able to take inside your browser and website. Let’s check out them.
1. Maintain Plugins Up To Date
Outdated or defective plugins are among the main causes of the “too many redirects” error.
We already lined how one can deactivate any add-ons which may be triggering the difficulty, however you can too take preventative steps proper now by retaining your present plugins updated. That is necessary as a result of updates regularly deal with safety points, improve compatibility, and repair bugs.
You may inform if a plugin has a brand new launch since you’ll see an alert in your WordPress dashboard.
You too can navigate to Plugins > Put in Plugins.
Out-of-date plugins ought to have a message telling you there’s a new model obtainable. You may select to replace them one time or allow computerized updates.
Moreover, you’ll be able to report any defective plugins in the event that they trigger the “too many redirects” error. Discover the corresponding assist discussion board utilizing the search bar and doc your difficulty to see if there’s a recognized answer. Furthermore, this motion may immediate the plugin builders to repair the issue.
2. Clear Your Cache And Saved Cookies Usually
Earlier within the information, we defined easy methods to clear cache and cookies. These strategies forestall your browser or WordPress website from attempting to entry outdated information.
It’s probably that you just received’t want to make use of these strategies, as most browsers are sensible sufficient to take away outdated cookies and cache gadgets. Nevertheless, you’ll be able to streamline the method by utilizing a WordPress plugin to clear your website’s cache.
An add-on resembling WP Tremendous Cache permits you to take away cached recordsdata manually or choose a customized time and interval to scan your website for outdated cache recordsdata. You may even elect to obtain emails when this course of occurs.
3. Use A Guidelines Or Firm For Web site Migrations
Most of the causes for redirect errors in WordPress come up from migrations from HTTP to HTTPS.
In the event you’re not accustomed to migrating a website, it’s possible you’ll miss among the important processes wanted to make your web site redirect and performance appropriately.
Subsequently, we advocate utilizing a devoted migration service to care for the method as a result of professionals have expertise with each facet of migrating a website.
In the event you choose to do the migration your self, right here’s a guidelines to make use of through the course of:
- Put together for the migration. First, you’ll have to make a replica of your website as a backup. You’ll additionally want to dam entry to your new website till you’ll be able to test it for errors and migrate all of your content material.
- Conduct URL mapping. You’ll have to create a redirect map for all of your website’s URLs. Then, you’ll have to replace them and create sitemaps to be able to transition the hyperlinks simply.
- Create backups. Earlier than beginning the migration, you’ll most likely need to again up all of your particular person content material. In any other case, you may lose it if one thing goes mistaken through the course of.
- Replace your DNS settings. You’ll want to alter your area settings in order that the URL factors to your new deal with. Normally, your new host can care for this for you.
- Arrange your redirects. This step is essential as a result of misconfiguring your redirects can set off the “too many redirects” error. Be sure to check every hyperlink to see that it really works.
- Ship your URLs to Google Search Console. You’ll have to confirm your new website and ship sitemaps along with your new URLs listed. This course of is important for SEO (website positioning).
- Replace your hyperlinks. If different web sites hyperlink to your website, you’ll be able to ask them to replace these URLs. Moreover, it is best to make sure that any advert campaigns comprise the right hyperlinks to your new web site deal with.
- Verify for issues. Lastly, run a website audit. This course of can check all of your hyperlinks and establish any points.
In the event you’re migrating to a unique server, the method may be barely totally different. It pays to do your analysis earlier than the migration to keep away from any errors.
Have One other WordPress Error To Repair?
If it’s essential resolve different technical issues in your website, we’ve put collectively tons of complete tutorials that will help you troubleshoot each widespread WordPress error:
And should you’re searching for extra data and finest practices for operating a WordPress website, take a look at all of our WordPress Tutorials. This can be a assortment of expert-written guides designed that will help you navigate your WordPress management panel like a professional.
Remedy Your WordPress Points With A Reliable Internet hosting Firm
The “too many redirects” error can occur in WordPress when the location will get caught in a redirection loop. Though the issue will be irritating, it is best to have the ability to clear up it fairly shortly.
You may normally repair the error by clearing out your cache or cookies. Moreover, there could also be solvable points along with your server, third-party platforms, or plugins. Lastly, should you nonetheless can’t troubleshoot the redirection error, your internet hosting supplier might be able to enable you to out.
Are you searching for a WordPress internet hosting supplier with caring, devoted professionals who may also help you with redirection points and different widespread errors?
Try our DreamHost’s WordPress packages as we speak! We offer customized technical assist to help you with any WordPress issues.
Get Content material Delivered Straight to Your Inbox
Subscribe to our weblog and obtain nice content material identical to this delivered straight to your inbox.