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

Date:


URL redirects are mandatory when it’s worthwhile to change the addresses of a web site web page completely or quickly.

Nonetheless, consequently, typically your web site can get caught in a redirection loop.

If this occurs, you might 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. Fortuitously, redirection points can usually be mounted by following a troubleshooting workflow.  When you already know what to do to diagnose the reason for the error, you may 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 occurring 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 positioning.

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.

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

If you happen to 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 already know the reason being due to too many redirects.

Not like another frequent WordPress errors, the “too many redirects” problem 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 Remedy The “Too Many Redirects” Error (13 Strategies)

Varied components may cause the “too many redirects” error. Some could also be inside your WordPress web site, however you’ll seemingly must go down just a few totally different paths earlier than you observe down and ultimately remedy the difficulty.

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

1. Pressure A Web page Refresh

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

You would possibly like to do that technique first as a result of it’s fast and received’t intrude with every other methods. You’ll additionally know immediately if it has mounted the issue or not.

You need to use the next keyboard shortcuts to pressure 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 worthwhile to do. If this straightforward technique doesn’t work, you may proceed by means of 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 information 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 fashion, you’ll have the ability to save time when on the lookout for associated merchandise.

Nonetheless, cookies can typically maintain onto incorrect knowledge. In flip, this may trigger the “too many redirects” error. When this happens, it is best to strive 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 choice.

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 may 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 information it’s storing.

When you’re executed, refresh the WordPress web site to see if the error is mounted.

Associated: WordPress Settings Overview

3. Clear WordPress Website Or Server Cache

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

The draw back is your cache can maintain onto outdated knowledge and trigger a redirection error. Due to this fact, you may strive clearing out the saved info to see if it fixes the issue.

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

Nonetheless, the redirection error will seemingly stop you from attending to your dashboard. Due to this fact, you would possibly must strive clearing your server cache.

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

Then, you may enter the next code to purge your cache:

curl -X PURGE “http://yourwebsite.com/.*” ; wp cache flush

When you’ve cleared out the cache, strive reloading your web site. If that doesn’t work, you might must strive one other technique.

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, you might must clear it out to repair the redirection error in WordPress.

If you happen to’re working with the Chrome browser, you may head again to Settings > Privateness and safety. Right here, click on on Clear shopping knowledge.

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

This may carry up a brand new window that permits you to decide on the information you wish to delete together with shopping 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 distinct browser.

If you’re executed, strive 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, it’s worthwhile to try to diagnose the underlying drawback. In any other case, you would possibly spend a variety of effort on extra time-consuming methods that also could not repair the error.

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

Firstly, you may enter your web site’s URL into the Redirect Checker device.

This free on-line utility enables you to enter a number of URLs and examine their statuses. You can even specify the consumer agent, corresponding to your browser, search engine bots, and cellular units.

When you enter your URL, you may see any standing or error codes related together 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 may proceed with the opposite methods on this troubleshooting information.

6. Briefly Disable WordPress Plugins

WordPress plugins are useful instruments that may introduce new functionalities to your web site. Nonetheless, these add-ons may trigger points, such because the “too many redirects” error.

Anybody can develop and share WordPress plugins. As such, you might by accident obtain one which accommodates defective code. These add-ons even have frequent updates. If you happen to haven’t up to date your plugins, they might even be inflicting issues in your web site.

Do that technique if you happen to just lately added new plugins to your WordPress web site. Even if you happen to don’t suspect a selected plugin, you should use the next steps to handle the difficulty.

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

(You might also have the ability to entry your web site information through your host’s file supervisor.)

When you’ve linked the SFTP consumer to your web site, you’ll want to seek out the folder that holds your plugins. You’ll normally discover it below area of your web site > wp-content > plugins.

Right here, you’ll see a sequence 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 may deactivate your entire plugins. It is best to now have the ability 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.

If you happen to discover an issue plugin, hold it deactivated and discover another choice on your web site within the WordPress plugin listing.

7. Examine WordPress Website Settings

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

For instance, your web site is likely to be pointing to the mistaken area title on your web site information. This extra generally occurs if you happen to’ve just lately migrated your web site.

You possibly can examine your web site settings in your WordPress dashboard.If you happen to 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 Handle (URL) and Website Handle (URL).

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

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

If the URLs don’t match and they need to, you may 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' );

Substitute 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. Examine SSL Certificates

If you happen to’ve just lately migrated your web site to HTTPS, there are numerous steps it’s worthwhile to full.

Sadly, if you happen to miss a few of them or misconfigure some settings, you possibly can 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 may very well be inflicting issues. If you happen to didn’t add it in any respect, your web site would routinely get caught in a redirect loop.

DreamHost Glossary

SSL/TLS

SSL stands for Safe Sockets Layer. Briefly, 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 additionally be some minor points together with your SSL certificates set up. For instance, you may need incorrectly put in the intermediate certificates that work collectively together with your predominant one.

You possibly can examine in case your SSL certificates is accurately put in utilizing a device such because the Qualys SSL Server Check.

This utility scans your area to seek out any related SSL points. This course of can take a couple of minutes, however it should warn you to any issues together with your certificates set up.

9. Replace Exhausting-Coded Hyperlinks

If you happen to’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 routinely, corresponding to Higher Discover and Substitute.

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 misconfigure your redirects and set off the “too many redirects” error.

We suggest that you just manually replace your hard-coded hyperlinks. You are able to do this with the search and exchange technique in WordPress.

Now we have a whole information on how one can change your WordPress URLs. If you happen to’re a DreamHost buyer, you can too attain out to our Technical Assist staff for help.

10. Examine For HTTPS Redirects On Your Server

HTTPS redirect guidelines may trigger the “too many redirects” error in WordPress. These server settings could have been misconfigured once you migrated your web site.

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

To find out your technique, first you’ll must know which server sort 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 consumer and open the file in a textual content editor. Then, you may 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 routinely. Save the .htaccess file once you’re executed.

To regulate your HTTPS redirects on Nginx servers, you’ll must ask assist that will help you alter the config file. Have them insert the following code to arrange your redirects:

server { pay attention 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 already know the drill — hold transferring by means of the troubleshooting steps on this information.

11. Examine Third-Get together Service Settings

If you happen to use a third-party service corresponding to a content material supply community (CDN) or net utility firewall (WAF) like Cloudflare, its settings could 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 net 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 when you have the Versatile SSL setting enabled and an SSL certificates from one other supply (corresponding to your internet hosting supplier).

On this state of affairs, 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 suggest utilizing the Versatile SSL setting when 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 routinely ship requests in HTTPS.

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

Lastly, double-check that you just’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 set off a redirect error.

12. Examine Redirects On Your Server

We already coated how one can examine 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 is likely to 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’ll have points together with your .htaccess file. We suggest creating a brand new one with default settings.

DreamHost Glossary

Apache

’Apache’ is the abbreviation of ‘Apache HTTP Server’. This can be a free and open-source net server software program that delivers content material. Its main operate is to determine 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 duplicate 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 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 web site. If this course of works, you may delete the previous .htaccess file and hold 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 sort makes use of a wide range of totally different config information, relying on the internet hosting supplier. We suggest reaching out to your host to see which one applies to your scenario.

13. Contact Your Net Internet hosting Supplier

If you happen to’ve tried all of those strategies and you may’t repair the “too many redirects” error, it is likely to be time to get some assist. You is likely to be lacking an important step, or there may very well be a deeper problem together with your WordPress web site.

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

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 just a few steps you may take inside your browser and web site. Let’s check out them.

1. Hold Plugins Up To Date

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

We already coated how one can deactivate any add-ons that could be triggering the difficulty, however you can too take preventative steps proper now by protecting your present plugins updated. That is necessary as a result of updates steadily handle safety points, enhance 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 may 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 problem to see if there’s a identified answer. 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 making an attempt to entry outdated knowledge.

It’s seemingly 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. Nonetheless, you may streamline the method by utilizing 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.

If you happen to’re not accustomed to migrating a web site, you might miss among the important processes wanted to make your web site redirect and performance accurately.

Due to this fact, we suggest utilizing a devoted migration service to maintain the method as a result of professionals have expertise with each side of migrating a web site.

If you happen to desire to do the migration your self, right here’s a guidelines to make use of throughout the course of:

  1. Put together for the migration. First, you’ll must make a duplicate of your web site as a backup. You’ll additionally want to dam entry to your new web site till you may examine 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 so that you could transition the hyperlinks simply.
  3. Create backups. Earlier than beginning the migration, you’ll most likely wish to again up all of your particular person content material. In any other case, you possibly can lose it if one thing goes mistaken throughout 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. Often, your new host can maintain 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. Ensure 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 together with your new URLs listed. This course of is important for SEO (web optimization).
  7. Replace your hyperlinks. If different web sites hyperlink to your web site, you may ask them to replace these URLs. Moreover, it is best to be certain that any advert campaigns comprise the right hyperlinks on your new web site handle.
  8. Examine for issues. Lastly, run a web site audit. This course of can check all of your hyperlinks and determine any points.

If you happen to’re migrating to a distinct server, the method is likely to 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 worthwhile to resolve different technical issues in your web site, we’ve put collectively tons of complete tutorials that will help you troubleshoot each frequent WordPress error:

And if you happen to’re on the lookout for extra info and greatest practices for operating a WordPress web site, 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 positioning will get caught in a redirection loop. Though the issue will be irritating, it is best to have the ability 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 together 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 enable you out.

Are you on the lookout for a WordPress internet hosting supplier with caring, devoted professionals who may also help you with redirection points and different frequent errors?

Take a look at our DreamHost’s WordPress packages immediately! 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.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Share post:

Subscribe

spot_imgspot_img

Popular

More like this
Related

The Fascinating Advantages of Machine Studying for Internet Internet hosting Monetization

When you’re desperate to monetize the internet hosting...

FINCEN’s New Useful Possession Info Reporting

It's essential for companies to remain compliant with...
%d bloggers like this: