Home Online Business Tips on how to Repair “Too Many Redirects” WordPress Error

Tips on how to Repair “Too Many Redirects” WordPress Error

0
Tips on how to Repair “Too Many Redirects” WordPress Error

[ad_1]

URL redirects are vital when you want to change the addresses of an internet site web page completely or quickly.

Nonetheless, 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 packages. Fortuitously, redirection points can usually be fastened by following a troubleshooting workflow.  When you understand what to do to diagnose the reason for the error, you possibly can remedy it comparatively shortly.

On this article, we’ll have a look at frequent causes of the “too many redirects” error, each on-site and off-site, and how one can repair every. Plus, we’ll clarify how one can stop 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 online 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 might set off the error and fail to load the location.

This error seems totally different relying on the browser you employ.

For instance, in Google Chrome, it normally says one thing like “This web page isn’t working,” stating too many redirects as the problem and exhibiting the ERR_TOO_MANY_REDIRECTS code.

screenshot of "this page isn't working" try clearing your cookies, ERR_TOO_MANY_REDIRECTS

Should 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 understand the reason being due to too many redirects.

In contrast to another frequent WordPress errors, the “too many redirects” difficulty doesn’t normally remedy itself.

So that you’ll must troubleshoot the origins of the issue to repair it. Right here’s how.

How To Clear up The “Too Many Redirects” Error (13 Strategies)

Varied elements could cause the “too many redirects” error. Some could also be inside your WordPress web site, however you’ll doubtless must go down a number of totally different paths earlier than you monitor down and finally remedy the problem.

So with that in thoughts, let’s check out a complete listing of a lot of the attainable options.

1. Drive A Web page Refresh

The primary resolution is a quite simple one. You possibly can power your browser to refresh and retrieve a brand new model of the web page. This methodology overrides any saved knowledge and shows the most recent info out there for the WordPress web site.

You would possibly like to do that methodology first as a result of it’s fast and received’t intrude with some other methods. You’ll additionally know immediately if it has fastened 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 + Choice + R
  • Firefox (Home windows): Ctrl + F5
  • Firefox (Mac): Command + Shift + R

That’s all you want to do. If this straightforward methodology doesn’t work, you possibly can proceed by the troubleshooting information.

Get Content material Delivered Straight to Your Inbox

Subscribe to our weblog and obtain nice content material similar 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 knowledge to hurry up and customise your experiences.

For instance, an e-commerce platform would possibly ship you on-site suggestions based mostly in your earlier purchases and searches. This manner, you’ll be capable to save time when searching for associated merchandise.

Nonetheless, cookies can generally maintain onto incorrect knowledge. In flip, this could trigger the “too many redirects” error. When this happens, you must attempt deleting cookies from the WordPress web site.

In Google Chrome, click on on the three dots throughout out of your handle bar and go to Settings.

close-up of Chrome menu nav with the Settings option highlighted

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

Close-up of the privacy and securities menu with "Third-party cookies" highlighted

On the following web page, choose See all web site knowledge and permissions.

close up of the third party menu cookies options calling attention to the option to "See all site data and permissions"

This can open an inventory 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 executed, refresh the WordPress web site to see if the error is fastened.

Associated: WordPress Settings Overview

3. Clear WordPress Website Or Server Cache

Caching shops info about your web site so it could possibly load quicker the following time you entry it.

The draw back is your cache can maintain onto outdated knowledge and trigger a redirection error. Subsequently, you possibly can attempt clearing out the saved info to see if it fixes the issue.

Should you can entry your WordPress web site, you possibly can attempt to clear your WordPress cache with a devoted caching plugin like WP Tremendous Cache.

Nonetheless, the redirection error will doubtless stop you from attending to your dashboard. Subsequently, you would possibly must attempt clearing your server cache.

Should you’re a DreamPress buyer and have a shell account, you’ll must log into your area with Safe Shell (SSH) protocol.

Then, you possibly can 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 web site. If that doesn’t work, it’s possible you’ll must 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 knowledge, it’s possible you’ll must clear it out to repair the redirection error in WordPress.

Should you’re working with the Chrome browser, you possibly can head again to Settings > Privateness and safety. Right here, click on on Clear searching knowledge.

close up of the privacy and security settings box we saw before, but this time with "Clear browsing data" highlighted

This can deliver up a brand new window that allows you to decide on the info you wish 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 knowledge.

You’ll want to make use of barely totally different strategies if you happen to’re working with a unique browser.

Once you’re executed, attempt reloading your web site to see if the “too many redirects” error has gone.

5. Decide The Trigger Of The Redirect Loop

If the sooner strategies didn’t remedy the redirection error, you want to try to diagnose the underlying drawback. In any other case, you would possibly spend plenty of effort on extra time-consuming methods that also might not repair the error.

There are a few totally different strategies you need to use to find out the reason for redirect loops.

Firstly, you possibly can enter your web site’s URL into the Redirect Checker instrument.

This free on-line software enables you to enter a number of URLs and test their statuses. You can even specify the consumer agent, corresponding to your browser, search engine bots, and cell gadgets.

When you enter your URL, you possibly can see any standing or error codes related along with your web site 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 possibly can 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. Nonetheless, these add-ons also can 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 accommodates defective code. These add-ons even have frequent updates. Should you haven’t up to date your plugins, they might even be inflicting issues in your web site.

Do this methodology if you happen to not too long ago added new plugins to your WordPress web site. Even if you happen to don’t suspect a selected plugin, you need to use the next steps to handle the problem.

Should you can’t entry your WordPress web site, you’ll must entry the plugin information through a Safe File Switch Protocol (SFTP) software like FileZilla.

(You may additionally be capable to entry your web site information through your host’s file supervisor.)

When you’ve related the SFTP shopper to your web site, you’ll want to search out the folder that holds your plugins. You’ll normally discover it underneath area of your web site > wp-content > plugins.

Right here, you’ll see a collection of folders with the names of your put in plugins.

screenshot of plugin folders showing a range of 11 plugins

Rename the plugins folder to “plugins-off”. This can deactivate your whole plugins. It is best to now be capable to entry your WordPress admin dashboard.

Subsequent, rename your plugins folder to its authentic 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.

Should you discover an issue plugin, preserve it deactivated and discover an alternate possibility to your web site within the WordPress plugin listing.

7. Test WordPress Website Settings

Generally an error in your WordPress web site settings could cause redirect loops.

For instance, your web site could be pointing to the mistaken area title to your web site information. This extra generally occurs if you happen to’ve not too long ago migrated your web site.

You possibly can test your web site settings in your WordPress dashboard.Should you can entry it, log in and head to Settings > Normal.

close up shot of WordPress lefthand nav with the "General" option selected

You’ll then see two fields for WordPress Deal with (URL) and Website Deal with (URL).

Close up of the WordPress Address and Site Address fields, both showing: https://tylhak.dream.press"

These two addresses needs to be similar except you need WordPress to have its personal listing.

If the URLs don’t match and they need to, you possibly can change the settings manually. To do that, you’ll must edit your web site’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. Test SSL Certificates

Should you’ve not too long ago migrated your web site to HTTPS, there are numerous steps you want to full.

Sadly, if you happen to miss a few of them or misconfigure some settings, you might set off the “too many redirects” error in WordPress.

For instance, if you happen to didn’t set up your Safe Sockets Layer (SSL) certificates accurately, it could possibly be inflicting issues. Should you didn’t add it in any respect, your web site would mechanically get caught in a redirect loop.

DreamHost Glossary

SSL/TLS

SSL stands for Safe Sockets Layer. In brief, it’s a protocol for sustaining a safe connection and defending delicate knowledge. Transport Layer Safety (TLS) is the successor to SSL. It’s a cryptographic protocol that gives a secure connection over any given laptop community.

Learn Extra

Nonetheless, there may also 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 predominant one.

You possibly can test in case your SSL certificates is accurately put in utilizing a instrument 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’ll warn you to any issues along with your certificates set up.

9. Replace Onerous-Coded Hyperlinks

Should you’ve simply switched from HTTP to HTTPS, you’ll must redirect your hyperlinks. In any other case, these URLs will level to areas that not exist in your web site.

Many customers make the most of plugins that may change these hyperlinks mechanically, corresponding to 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 could possibly misconfigure your redirects and set off the “too many redirects” error.

We advocate that you simply manually replace your hard-coded hyperlinks. You are able to do this with the search and change methodology in WordPress.

We now have an entire information on how one can change your WordPress URLs. Should you’re a DreamHost buyer, you can even attain out to our Technical Assist workforce for help.

10. Test For HTTPS Redirects On Your Server

HTTPS redirect guidelines also can trigger the “too many redirects” error in WordPress. These server settings might have been misconfigured while you migrated your web site.

For instance, your HTTPS settings might not be accurately redirecting your hyperlinks. As such, you’ll must amend them.

To find out your methodology, first you’ll must know which server kind your host makes use of.

In case your web site makes use of an Apache server, you’ll must edit your .htaccess file.

Find it inside your SFTP shopper and open the file in a textual content editor. Then, you possibly can 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 mechanically. Save the .htaccess file while you’re executed.

To regulate your HTTPS redirects on Nginx servers, you’ll must ask assist that can assist you regulate 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 web site.

If it doesn’t repair the issue, you understand the drill — preserve transferring by the troubleshooting steps on this information.

11. Test Third-Social gathering Service Settings

Should you use a third-party service corresponding to a content material supply community (CDN) or internet software firewall (WAF) like Cloudflare, its settings might trigger the “too many redirects” error.

DreamHost Glossary

CDN

CDN is an abbreviation for “Content material Supply Community”. It refers to a geographically-distributed community of internet servers (and their knowledge facilities). The entities that make up a CDN collaborate to make sure speedy content material supply through the web.

Learn Extra

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 (corresponding to your internet hosting supplier).

On this situation, your internet hosting server requests are already redirecting URLs from HTTP to HTTPS. Nonetheless, 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 an alternative, change your Cloudflare encryption mode and select both Full or Full (strict). Doing so will mechanically ship requests in HTTPS.

Moreover, it’s possible you’ll wish to allow the “At all times Use HTTPS” rule in Cloudflare. This forces your web site to ship all requests through HTTPS. Subsequently, it avoids inflicting a redirect loop and triggering the WordPress error.

Lastly, double-check that you simply’ve accurately configured your redirects in Cloudflare. For instance, you’ll wish to be certain that your area doesn’t redirect to itself. In any other case, it could possibly set off a redirect error.

12. Test Redirects On Your Server

We already coated how one can test for HTTPS redirects in your server. Nonetheless, different redirects can set off an error when loading your WordPress web site.

For instance, you may need a 301 redirect misconfigured. It could be pointing to the unique hyperlink, triggering a redirect loop that forestalls your web site from loading. You possibly can normally discover redirects corresponding to this by checking your config information.

In case your web site makes use of an Apache server, you will have points along with your .htaccess file. We advocate creating a brand new one with default settings.

DreamHost Glossary

Apache

’Apache’ is the abbreviation of ‘Apache HTTP Server’. It is a free and open-source internet server software program that delivers content material. Its main perform is to ascertain a connection between a server and a browser through HTTP requests.

Learn Extra

First, you’ll must entry your web site through 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 must make a brand new .htaccess file. Put the following code into it to ascertain 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 web site. If this course of works, you possibly can delete the outdated .htaccess file and preserve working with the brand new one.

In case your web site makes use of an Nginx server, you’ll must comply with a barely totally different course of. This server kind makes use of quite a lot of totally different config information, 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 Net Internet hosting Supplier

Should you’ve tried all of those strategies and you may’t repair the “too many redirects” error, it could be time to get some assist. You could be lacking an important step, or there could possibly be a deeper difficulty along with your WordPress web site.

By contacting your website hosting supplier, you may get quick help with the error. For instance, DreamHost prospects can contact our Technical Assist workforce.

Associated: The Final Information To Net Internet hosting

How To Forestall ERR_TOO_MANY_REDIRECTS In The Future (3 Methods)

If you wish to stop the “too many redirects” error, there are a number of steps you possibly can take inside your browser and web site. Let’s check out them.

1. Hold Plugins Up To Date

Outdated or defective plugins are a number of the main causes of the “too many redirects” error.

We already coated how one can deactivate any add-ons that could be triggering the problem, however you can even take preventative steps proper now by protecting your present plugins updated. That is necessary as a result of updates steadily handle safety points, improve compatibility, and repair bugs.

You possibly can inform if a plugin has a brand new launch since you’ll see an alert in your WordPress dashboard.

You can even navigate to Plugins > Put in Plugins.

close up of the wordpress navigation menu with "Installed Plugins" selected under the "Plugins" heading

Out-of-date plugins ought to have a message telling you there’s a new model out there. You possibly can select to replace them one time or allow computerized updates.

Moreover, you possibly can 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 identified resolution. Furthermore, this motion might immediate the plugin builders to repair the issue.

2. Clear Your Cache And Saved Cookies Repeatedly

Earlier within the information, we defined how one can clear cache and cookies. These strategies stop your browser or WordPress web site from attempting to entry outdated knowledge.

It’s doubtless that you simply received’t want to make use of these strategies, as most browsers are sensible sufficient to take away outdated cookies and cache gadgets. Nonetheless, you possibly can streamline the method through the use of a WordPress plugin to clear your web site’s cache.

An add-on corresponding to WP Tremendous Cache means that you can take away cached information manually or choose a customized time and interval to scan your web site for outdated cache information. You possibly can even elect to obtain emails when this course of occurs.

3. Use A Guidelines Or Firm For Web site Migrations

Lots of the causes for redirect errors in WordPress come up from migrations from HTTP to HTTPS.

Should you’re not acquainted with migrating a web site, it’s possible you’ll miss a number of the important processes wanted to make your web site redirect and performance accurately.

Subsequently, we advocate utilizing a devoted migration service to handle the method as a result of professionals have expertise with each facet of migrating a web site.

Should you choose to do the migration your self, right here’s a guidelines to make use of through the course of:

  1. Put together for the migration. First, you’ll must make a replica of your web site as a backup. You’ll additionally want to dam entry to your new web site till you possibly can test it for errors and migrate all of your content material.
  2. Conduct URL mapping. You’ll must create a redirect map for all of your web site’s URLs. Then, you’ll must replace them and create sitemaps to be able to transition the hyperlinks simply.
  3. Create backups. Earlier than beginning the migration, you’ll in all probability wish to again up all of your particular person content material. In any other case, you might lose it if one thing goes mistaken through the course of.
  4. Replace your DNS settings. You’ll want to alter your area settings in order that the URL factors to your new handle. Normally, your new host can handle this for you.
  5. Arrange your redirects. This step is essential as a result of misconfiguring your redirects can set off the “too many redirects” error. Be sure you check every hyperlink to see that it really works.
  6. Ship your URLs to Google Search Console. You’ll must confirm your new web site and ship sitemaps along with your new URLs listed. This course of is crucial for search engine marketing (website positioning).
  7. Replace your hyperlinks. If different web sites hyperlink to your web site, you possibly can ask them to replace these URLs. Moreover, you must be certain that any advert campaigns include the right hyperlinks to your new web site handle.
  8. Test for issues. Lastly, run a web site audit. This course of can check all of your hyperlinks and establish any points.

Should you’re migrating to a unique server, the method could 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 you want to resolve different technical issues in your web site, we’ve put collectively tons of complete tutorials that can assist you troubleshoot each frequent WordPress error:

And if you happen to’re searching for extra info and finest practices for operating a WordPress web site, take a look at all of our WordPress Tutorials. It is a assortment of expert-written guides designed that can assist you navigate your WordPress management panel like a professional.

Clear up 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 might be irritating, you must be capable to remedy it fairly shortly.

You possibly can 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, if you happen to nonetheless can’t troubleshoot the redirection error, your internet hosting supplier might be able to provide help to out.

Are you searching for a WordPress internet hosting supplier with caring, devoted professionals who can assist you with redirection points and different frequent errors?

Try our DreamHost’s WordPress packages in the present day! 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 similar to this delivered straight to your inbox.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here