重定向太多?錯誤太多重定向以及如何修復它

3 years ago 21
ARTICLE AD BOX

A redirect tin beryllium truly useful successful galore situations, but erstwhile utilized improperly, they tin origin an infinite nightmare. If you’re bushed of perpetually dealing with excessively galore redirects errors, work connected for a fewer casual fixes for this pesky problem.

What Is a Too Many Redirects Error?

“ERR_TOO_MANY_REDIRECTS” is an mistake connection that appears erstwhile a website creates a redirect loop. One redirect leads to different and creates a concatenation that redirects backmost to itself successful a loop, and directs the idiosyncratic betwixt antithetic addresses infinitely.

When the browser has had enough, an ERR_TOO_MANY_REDIRECTS connection appears. 

This is simply a beauteous communal problem. Our 2019 survey into interior linking mistakes recovered that 8.3% of websites endure from this issue, truthful if it’s a occupation you’ve besides travel across, cognize that you’re not alone.

img-semblog

The instauration of this redirect loop could beryllium a fewer things. It could beryllium that your website has been precocious migrated, but you’ve yet to update each of your leafage addresses, oregon possibly you’ve precocious changed from HTTP to HTTP and your website doesn’t cognize which mentation of the leafage to redirect to. 

Maybe you’ve conscionable precocious created a caller redirect that is successful struggle with 1 that already exists. In immoderate case, it’s usually due to the fact that 2 redirects are competing against 1 another. 

What Does a Too Many Redirects Error Look Like successful My Browser?

These mistake messages volition look otherwise successful antithetic browsers. Here are a fewer examples.

Firefox

The substance of the Firefox mistake volition read:

Too galore  redirects mistake  successful  Firefox

Chrome

The substance for the Chrome mistake volition read: 

Error Too Many Redirects successful  Google Chrome

Microsoft Edge

The substance for the Microsoft Edge mistake volition read: 

What is the err excessively  galore  redirects error1

Safari

The substance for the Safari mistake volition read: 

img-semblog

Whatever the connection says, it tin pb a idiosyncratic to judge that a website isn’t secure, which tin trim their trust. 

Needless to say, your apical precedence arsenic a tract proprietor is to hole the redirect issues ASAP. 

How to Identify a Too Many Redirects Error with the Site Audit tool

You tin cheque if your website has redirect issues with the Site Audit tool. You’ll request to make a task for your domain if you haven’t already. 

Once the task is available, navigate to your task dashboard and execute the pursuing steps:

  1. Open your Site Audit and spell to the “Issues” tab. You’ll spot a leafage similar this:
I8Rr07ZiPENSZlzBrkNTXUiDQU7IT5j-mb8csr_QxDCbsCjFY-4vItvDGAIBw4UlGdmYCQoMbgQWBqkIIvND9UXsUfooZMvVxGujv59OuMrq2uULDSTaEGT_h1Pu0w
  1. Select “Redirect chains and loops” (highlighted successful the screenshot above) to cheque if the mistake has been triggered. The Site Audit volition automatically admit the magnitude of the concatenation and amusement you a afloat database of the URLs.
Site Audit Redirect Chains and Loops
  1. Identify the URLs that request fixing and get to work! Check retired the useful ‘Why and however to hole it’ info container located astatine the apical of the leafage for much insights.

How Do I Fix a Too Many Redirects Error?

Once you cognize wherever the ERR_TOO_MANY_REDIRECTS amusement up, you tin commencement fixing the problem.

Here’s however we’d bash it: Clear your browser cache and cookies.

The archetypal happening you tin effort is clearing the cache and cookies successful your browser. Sometimes a excessively galore redirects mistake tin hap erstwhile your browser cookies are caching aged redirects. 

Here’s however you tin spell astir it successful Chrome and Firefox:

Chrome

  1. Click the 3 dots astatine the apical close of your browser to entree settings
too galore  redirects
  1. Navigate to “Privacy and Security” and click “Clear browsing data”
too galore  redirects
  1. Set your clip range, past click “Clear data”
too galore  redirects

Firefox

  1. Click the 3 dots astatine the apical close of your browser to entree settings
too galore  redirects
  1. Navigate to “Privacy and Security” and past click “Clear data” 
too galore  redirects
  1. Click “Clear”
too galore  redirects

Clear your WordPress cache and cookies

You tin besides wide retired your cache and cookies connected WordPress via whichever plugin you’ve installed to assistance you velocity up your site. Here’s however it works for 2 fashionable plugins:

WP Rocket plugin

  1. Go to your WordPress Admin Dashboard
  2. Navigate to “Settings” and past “WP Rocket”
too galore  redirects
  1. Locate “Quick Actions” and click “CLEAR CACHE”
too galore  redirects

W3 Total Cache plugin

  1. Go to your WordPress Admin Dashboard
  2. Navigate to “Performance” and past “Dashboard”
too galore  redirects
  1. Go to the W3 Total Cache Dashboard and click “Empty All Caches”
too galore  redirects

Once you’re done, refresh your webpage and spot if the mistake is gone. If it isn’t, support reading. 

Check your URL settings

The mistake could prevarication successful your URL settings. If your location URL and website URL don’t match, past your idiosyncratic volition get stuck successful a redirect loop.

In WordPress, you tin hole this easily. You conscionable request to spell to your settings and find your “WordPress Address (URL)” and "Site Address (URL)”.

too galore  redirects

Check if they match. If they don’t, you’ll request to modify them truthful they do. If everything looks successful bid but the redirect mistake persists, present are 2 tiny things you whitethorn person missed:

  1. Make definite that determination are nary whitespaces astatine the opening oregon extremity of the URLs
  2. Make definite determination is simply a www astatine the opening of the URLs (after the https://)

Check Your Security Protocol

You whitethorn usage a information protocol (SSL certificate) to tally your website. Although this tin person a batch of benefits for your site, it could besides lend to your redirect error. Check retired our nonfiction connected SSL certificates.

Change your information protocol backmost to its default settings and refresh your page. If the mistake connection is inactive there, effort resetting your SSL certificate altogether.

Verify .htaccess

.htaccess is simply a large portion of what controls leafage redirects, truthful adjacent the smallest .htaccess occupation could origin a domino effect successful your leafage loading. 

To redefine your .htaccess record with an FTP client, conscionable travel these steps:

  1. Use your FTP lawsuit to find your tract files
  2. Access the WordPress files folder via the “Online File Manager”
too galore  redirects
  1. Go to your htdocs folder
too galore  redirects
  1. Find the .htaccess and download it (in lawsuit you request to reconstruct it later)
too galore  redirects
  1. Right-click connected the record to edit it. Now you tin usage the web-based substance editor 
  2. Reset to the default settings, past prevention and refresh your site

If this hasn’t solved the error, you tin reconstruct the backup .htaccess record you antecedently downloaded. We’ve got 1 much hole for you to try! 

Check Your Plugins

The solution to your redirect mistake mightiness fell successful your WordPress plugins. You tin disable the plugins presently progressive via the WordPress admin Dashboard. Go to “Plugins”.

too galore  redirects

Then prime each plugins and take “Deactivate” successful the drop-down “Bulk Actions” and click “Apply”.

too galore  redirects

If the bulk enactment doesn’t lick the issue, you’ll request to trial each plugin to spot which 1 whitethorn beryllium causing the redirect error. Enable them erstwhile much and refresh the page. 

Access the plugins folder (probably successful the WordPress Content folder) and rename each folder individually oregon region them simultaneously. Don’t hide to download a backup each time, past refresh your page.

Hopefully, this volition lick your excessively galore redirects mistake erstwhile and for all! 

Fixing the Too Many Redirects Error

Getting that small mistake connection tin beryllium beauteous annoying, but erstwhile you place the source, fixing it is simply a portion of cake! Our recommendation? 

Use the Site Audit instrumentality to regularly cheque and place your redirects: support them astatine nary much than 3 redirects per concatenation — and marque definite you ever region instantly immoderate redirect loops mistake you find!

Check retired the Site Audit instrumentality contiguous and commencement monitoring your website’s redirect chains. The sooner you do, the sooner they’ll beryllium solved.