NeovaPlateforme SEO avancée

URL de ressource dans une boucle de redirection

Dans Neova S'exécute à partir du crawl lui-même : rien à configurer.

Règle revue le 17 octobre 2026 · Guide mis à jour le 9 juin 2026

Une ressource de la page redirige via des URL qui ramènent à une URL déjà présente dans la chaîne, si bien que les navigateurs et le rendu de Google ne reçoivent jamais le fichier.

Ce que vous pouvez faire

Cassez la boucle dans les règles de redirection et faites pointer le HTML vers une URL de ressource qui renvoie un code 200.

Pourquoi Neova le signale

  • Une ressource prise dans une boucle de redirection n'est jamais livrée : la page se charge sans ce fichier.
  • Google effectue le rendu des pages avec leurs ressources : un fichier manquant peut changer ce que voit Google.
  • Les navigateurs s'arrêtent après un nombre fixe de sauts et signalent une erreur.

Sources

Le guide complet

Cette partie est en anglais pour l'instant.

TL;DR

A CSS, JS, image, or font file is caught in a multi-hop redirect circle (A to B to C and back to A), so it never returns a 200 and never loads; trace the chain with curl, find which layer adds each hop, and replace it all with one rule at one layer.

What This Check Flags

This audit flag fires when a page resource, meaning a stylesheet, script, image, or font that your HTML references, responds with a redirect that leads to another redirect, and somewhere down the chain the destination points back to a URL that was already visited. The request goes in a circle and never reaches a URL that answers with a 200 OK, so the resource simply does not exist as far as the browser or crawler is concerned.

Two things make this check specific. First, it is about resources, not pages: the page itself may load fine, but something it needs to render is unreachable. Second, it is about chained loops, not single-hop self-redirects. Each hop looks like a normal redirect, and the loop only appears when you follow the whole chain.

Why Multi-Hop Loops Are Sneakier Than Self-Loops

A single-hop self-redirect is easy to spot: you request a URL and the Location header hands you the same URL back. A chained loop hides in plain sight because every individual response is valid. Hop one adds a trailing slash. Hop two forces HTTPS. Hop three rewrites the path to a CDN-friendly format that happens to resolve back to the original URL. Test any one rule in isolation and it behaves exactly as intended.

The usual culprit is layering. A typical WordPress stack has at least three places that can issue redirects: the .htaccess file at the server level, a CDN or proxy in front of the origin (Cloudflare page rules or an SSL mode mismatch are classic examples), and one or more plugins handling redirects, caching, or HTTPS enforcement at the application level. Each layer was configured at a different time, and none of them knows the others exist. When their rules disagree about the canonical form of a URL, the request bounces between them forever. A common pattern: the CDN talks to the origin over HTTP, the origin redirects to HTTPS, the CDN downgrades again, and the loop never ends even though no single rule is wrong.

Consequences

The Resource Never Loads

There is no final destination, so the file is a broken reference. A looping stylesheet can leave the page unstyled, a looping script can break interactivity, and a looping font or image degrades the render.

Browsers Give up After a Fixed Limit

Browsers do not follow redirects forever. Chrome and Firefox stop after roughly 20 hops and surface ERR_TOO_MANY_REDIRECTS, and Safari gives up even earlier. Until that limit is hit, the browser burns time and connections chasing the loop.

Rendering and Indexing Suffer

Google renders pages before indexing them. If the resources needed for rendering are unreachable, Google may evaluate a broken or empty version of your page, and crawl budget is wasted on hops that lead nowhere.

How to Diagnose It

Trace the full chain from the command line. The -L flag follows redirects and -I shows headers only, so you can see every hop and its Location header:

$ curl -IL --max-redirs 10 https://example.com/assets/site.css

HTTP/1.1 301 Moved Permanently
location: https://cdn.example.com/assets/site.css

HTTP/1.1 302 Found
location: https://example.com/wp-content/themes/x/site.css

HTTP/1.1 301 Moved Permanently
location: https://example.com/assets/site.css   <-- back to the start

curl: (47) Maximum (10) redirects followed

Once you can see the chain, attribute each hop to its layer. Response headers help: a hop served by Cloudflare carries cf-ray or server: cloudflare headers, while origin hops usually identify Apache or LiteSpeed. To isolate the CDN, query the origin directly with curl --resolve. To isolate plugins, deactivate redirect, cache, and SSL plugins one at a time and re-run the trace, and check .htaccess for RewriteRule and Redirect directives touching the resource path. The loop is always a disagreement between at least two layers.

How to Fix It

The cure is consolidation, not another rule on top:

1. Decide the one true URL for the resource, the exact protocol, host, and path that should serve it with a 200.
2. Pick a single layer to own redirection for that path, usually the server config or .htaccess, and write one direct 301 there if a redirect is needed at all.
3. Remove or correct the conflicting rules at the other layers: delete the stale plugin redirect, fix the CDN SSL mode or page rule, or drop the duplicate .htaccess directive.
4. Better still, update the HTML, theme, or template to reference the final URL directly so no redirect is needed for the resource at all.
5. Purge CDN and page caches, then re-run the curl trace until you see a clean result:

$ curl -IL https://example.com/assets/site.css

HTTP/1.1 301 Moved Permanently
location: https://cdn.example.com/assets/site.css

HTTP/1.1 200 OK
content-type: text/css

Common Mistakes

Adding yet another redirect to "patch" the loop instead of removing the conflicting rule, which just makes the chain longer. Testing only in a browser with warm cache, where a cached redirect hides the live behavior; always retest with curl or a private window. Fixing the loop at the CDN while the origin rule still exists, so it returns the moment the CDN config changes. And ignoring the flag because "the page loads for me," when render-dependent crawlers are the ones hitting the wall.

FAQ

Q: How is this different from a resource that redirects back to itself?

A self-redirect is one URL whose Location header points at itself. A chained loop involves several URLs that each redirect somewhere new, and only the complete chain circles back. The fix differs too: a self-loop is one bad rule, a chained loop is two or more layers in conflict.

Q: The page looks fine in my browser. Can I ignore this?

No. Your browser may be serving the resource from cache, masking the loop. First-time visitors and rendering crawlers request it fresh, follow the chain, and hit the redirect limit. Test with curl or a cleared cache before deciding it is harmless.

Q: Should I fix the redirect chain or just change the reference in my HTML?

Do both. Updating the reference to the final working URL fixes rendering immediately. But the looping rules should still be removed, because anything else that links to those URLs, including old pages and cached HTML, will keep falling into the loop.

Need a full technical audit?

Neova runs deep crawls that catch issues like this across your whole site.

Trouvez ce problème sur votre site

Neova lance ce check et tous les autres à chaque crawl, puis rédige la correction sous forme de ticket pour votre équipe.

  • Application de bureau pour Mac, Windows et Linux
  • Les 696 checks, chacun avec sa source
  • Search Console et Analytics 4, connectés en lecture seule
  • Tickets vers Jira, Linear et Asana

Télécharger Neova Offre Desktop Free, ou Solo gratuit pendant 14 jours, sans carte.

Tous les checks de la catégorie Redirections · Guides · Bibliothèque des checks

Rédigé par Neova Labs · Retour à la Bibliothèque des checks