99% people do 301 redirection have stepped on the pit! Teach you a step to avoid the "redirection death cycle" disaster!

Setting up 301 redirects is a great way to improve SEO, a good thing to optimize the user's access path, but if you're not careful, the site will appear "ERR_TOO_MANY_REDIRECTS(redirect too many times)" problem, the page can not be opened, the loss of visitors, and even affect the ranking. The root cause of this problem, many times lies in the redirect improperly set up to lead to the cycle of redirection. This article tells you step by step: how to correctly set up 301 redirects, to avoid falling into the "dead cycle" trap.

Picture [1]-99% people do 301 redirection have stepped on the pit! Teach you step by step to avoid the "redirection death cycle" disaster!

First, what is a 301 redirect? Why is it prone to errors?

A 301 redirect is a permanent redirection of an URL Redirection to a new address is often used to retain the original link weight after a revamp. When set incorrectly, the following may happen:

  • A redirects to B, which redirects back to A, creating a dead loop.
  • The same page is being redirected by multiple rules at the same time, fighting each other
  • Plug-ins,CDNThe server configurations are in conflict with each other.

Eventually, the browser recognizes "too many redirects" and simply stops loading.

Common scenarios that lead to ERR_TOO_MANY_REDIRECTS

1. HTTP and HTTPS redirect to each other.

For example, if you set HTTP → HTTPS, but the CDN sets HTTPS → HTTP, they will fight each other.

2. Repeatedly set redirection

A WordPress plugin sets up a redirect, a CDN (like Cloudflare) sets it up again, or a server configuration file adds a line as well, causing the chain to be too long or circular.

3. URL writing inconsistency

for example http://example.com respond in singing https://www.example.com Repeated redirection and lack of harmonized norms.

4. Multipleplug-in (software component)collision (of interests)

SEO plugins, redirection plugins, and caching plugins can all set up redirects, and inconsistent settings are prone to errors.

Picture [2]-99% people do 301 redirection have stepped on the pit! Teach you a step to avoid the "redirection death cycle" disaster!

Third, how to correctly set up 301 redirection, to avoid redirection dead cycle?

1. Confirmation that the redirection logic is clear and unidirectional

All redirects only go to the "destination address", don't circle back!
Examples:A → B → C is acceptable, but C → A It's dangerous.

2. Controlling redirection in one way

It is recommended to choose a plugin (e.g. Redirection) to unify the settings for all redirects
Avoid the confusion of "plugin set one, server set one, CDN set another".

Picture [3]-99% people do 301 redirection have stepped on the pit! Teach you step by step to avoid the "redirection death cycle" disaster!

3. Check for conflicting HTTP and HTTPS settings.

probeWordPress The address (URL) and the site address (URL) are identical, and you need to make sure that they are both with or without https. You can't have one http and one https.

Picture [4]-99% people do 301 redirection have stepped on the pit! Teach you a step to avoid the "redirection death cycle" disaster!

4. Test the redirect chain after clearing the cache

Be sure to clear your cache (plugins, browsers, CDNs all of them) after redirection rules are changed

Picture [5]-99% people do 301 redirection have stepped on the pit! Teach you a step to avoid the "redirection death cycle" disaster!
Picture [6]-99% people do 301 redirection have stepped on the pit! Teach you step by step to avoid the "redirection death cycle" disaster!
Picture [7]-99% people do 301 redirection have stepped on the pit! Teach you step by step to avoid the "redirection death cycle" disaster!


Viewing redirection paths using browser's no-trace mode

Picture [8]-99% people do 301 redirection have stepped on the pit! Teach you step by step to avoid the "redirection death cycle" disaster!

wrap-up

301 redirection set up well, is SEO plus points; set up improperly, the site may hang directly. "ERR_TOO_MANY_REDIRECTS" is not scary, as long as the logic is clear, consistent control, regular checkups, you can easily avoid this big pit. The next time you set redirection before, remember one sentence: a path, a control method, do not repeat settings.


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
Customer Service
Customer Service
Tel: 020-2206-9892
QQ咨詢:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
? Reprint statement
This article was written by zzzzr
THE END
If you like it, support it.
kudos127 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments