What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 5 questions

Less than a minute. Find out how much you really know about Google search.

🕒 ~1 min 🎯 5 questions

Official statement

For IP-based redirects, using a 302 redirect is preferred over a 301 to avoid unwanted caching by browsers or systems.
16:39
🎥 Source video

Extracted from a Google Search Central video

⏱ 53:42 💬 EN 📅 03/05/2018 ✂ 18 statements
Watch on YouTube (16:39) →
Other statements from this video 17
  1. 3:16 L'indexation mobile-first fait-elle disparaître votre contenu desktop des résultats de recherche ?
  2. 4:47 Le contenu caché accessible après interaction est-il vraiment indexé en mobile-first ?
  3. 5:18 Faut-il vraiment abandonner les liens JavaScript pour le SEO ?
  4. 7:20 Les balises canonical suffisent-elles vraiment pour gérer les variantes de produit en SEO ?
  5. 10:26 Peut-on lister la même URL dans plusieurs sitemaps sans risque ?
  6. 11:29 Faut-il vraiment basculer son site en HTTPS en une seule fois pour éviter les pertes de trafic ?
  7. 15:38 Les vidéos et images dans Google News pénalisent-elles vraiment le référencement ?
  8. 18:07 L'attribut 'noreferrer' pénalise-t-il vraiment le classement de vos pages ?
  9. 18:52 Pourquoi les PWA ne garantissent-elles pas une place dans le carrousel mobile de Google ?
  10. 23:55 Les contenus similaires se cannibalisent-ils vraiment au niveau des backlinks ?
  11. 25:06 Les bugs techniques impactent-ils vraiment le classement Google sur le long terme ?
  12. 31:18 Les rich snippets étoiles dépendent-ils vraiment de la qualité globale du site ?
  13. 35:54 Faut-il vraiment bloquer les vidéos via robots.txt pour les exclure des snippets enrichis ?
  14. 38:49 Les paramètres URL multiples sabotent-ils vraiment l'indexation de votre site ?
  15. 43:18 Comment vérifier qui a soumis quelle URL dans la Search Console ?
  16. 44:25 Plusieurs balises H1 sur une page web : Google les pénalise-t-il vraiment ?
  17. 44:34 Peut-on vraiment utiliser plusieurs hreflang vers la même URL sans risquer de pénalité ?
📅
Official statement from (8 years ago)
TL;DR

Google recommends 302 for IP-based redirects over 301 to avoid browser caching that could trap users on an inappropriate language version. This technical nuance directly affects the management of multilingual and multi-country sites. Specifically, a 301 may prevent a French user traveling in Germany from accessing the French version of your site, even if they request it explicitly.

What you need to understand

Why does Google make a distinction between 301 and 302 for geo-targeting?

The fundamental difference lies in caching behavior. A 301 signals to the browser and proxies that the redirect is permanent, allowing them to memorize this instruction and apply it without querying the server again. A 302, on the other hand, indicates a temporary move that warrants reassessment with each visit.

In the context of IP-based redirects, this difference becomes critical. The user changes their physical location, their IP address changes, but their browser retains the 301 instruction. As a result, even while traveling, they remain stuck on the version initially served. The 302 circumvents this trap by enforcing a systematic check.

How do search engines handle these two status codes?

Google transfers PageRank to the target page in both cases, contrary to a common misconception that only 301 conveys authority. The real difference lies in speed: a 301 consolidates signals faster because it indicates a definitive migration.

For geo-targeted redirects, this rapid consolidation becomes a disadvantage. You don’t want Google to choose a single canonical version. Each language version should remain independently indexable, with its own ranking signals for its target queries.

What concrete risks does a 301 pose for this type of redirect?

The most common scenario: a British user visits your site from London, receives a 301 to /en-gb/, and their browser memorizes this instruction. Three weeks later, they travel to Paris, attempt to access /fr/ directly via a link shared by a French colleague, and find themselves immediately redirected to /en-gb/ without even consulting the server.

From a crawl perspective, Googlebot may also interpret a geo-targeted 301 as a desire to merge versions. If the bot crawls from US datacenters and consistently receives a 301 to /en-us/, it may consider other versions as duplicate or secondary content, weakening their ranking potential.

  • 302 preserves the independent indexing of each language version without forced consolidation
  • 301 creates a browser cache that prevents access to alternative versions even with a direct URL
  • Hreflang remains essential even with 302 to explicitly signal the relationships between versions
  • IP detection alone is insufficient: combine it with accessible manual selection mechanisms
  • Test behavior under real conditions: VPN, multiple browser profiles, cached or not

SEO Expert opinion

Is this recommendation consistent with practices observed on the ground?

Yes, and audits of multilingual sites confirm this. Sites using 301 for geo-targeting regularly generate support tickets from users stuck on the wrong version. The issue is particularly insidious as it does not appear during initial tests: a browsing history is needed for the cache to manifest.

However, Google remains vague on one crucial point: how long does a 302 actually remain temporary? After years of stable 302 redirects, there are instances of de facto signal consolidation. The engine eventually treats some permanent 302 redirects as almost 301s, especially if no hreflang clarifies the structure.

In what cases should this rule be nuanced?

If you are managing a permanent domain migration with transitional IP detection during the switch, a 301 remains relevant once the transition is completed. Mueller's recommendation specifically targets geo-targeted redirects that are permanent in nature, not one-off migrations.

Another edge case: sites combining geo-targeting and URL restructuring. For instance, moving from /fr/ to /fr-fr/ to separate language and country. If this restructuring is permanent and independent of the IP, the 301 becomes appropriate again. The decisive criterion is: should the source URL still exist and serve content in some contexts? If yes, use 302. If no, use 301. [To be verified]: Google does not explicitly document how it arbitrates between these conflicting signals (301 to A + hreflang to B).

What implementation errors are most commonly observed?

The most frequent error: implementing 302 on the server but forgetting to disable browser caching via Cache-Control headers. The 302 then loses all its value as the browser can still memorize the response. It is necessary to explicitly serve Cache-Control: no-cache, no-store, must-revalidate on these redirects.

A second classic pitfall: using 302 without providing a visible manual language/country selector. The user detected in Belgium and redirected to /fr-be/ must be able to easily switch to /nl-be/ if they are Flemish. Without this escape route, 302 solves the technical issue but not the user experience, and Google increasingly penalizes sites that trap visitors.

Caution: some CDNs and intermediate caching systems may transform your 302s into 301s or vice versa if misconfigured. Check the headers actually received on the client side, not just what your server code is supposed to send.

Practical impact and recommendations

How to properly implement these geo-targeted redirects in 302?

On the server side, configure IP detection (via GeoIP, CloudFlare, FastlyGeo, or equivalent) to return a HTTP 302 Found along with the appropriate headers. The Location header should point to the target URL, and you must add Cache-Control: no-cache, private to prevent caching by proxies or CDNs.

Then, implement hreflang tags on all versions of each page, including an x-default tag pointing to your fallback version (usually EN or the primary language). This layer of semantic signaling explicitly indicates to Google that these versions intentionally coexist, and that it is not accidental duplication.

What checkpoints should be tested before and after deployment?

First, simulate access from different locations via VPN or regional proxies. Check that the returned status code is indeed 302, that the destination URL corresponds to the expected logic, and that Cache-Control headers are present. Also, test direct access to alternative URLs: a user should be able to force /de/ even if arriving from a French IP.

Post-deployment, monitor Search Console for each language version. If one version suddenly loses impressions or positions in favor of another, it may be a sign of unwanted consolidation. Also check your analytics: an unusually high bounce rate on certain versions may indicate that users are receiving content in the wrong language despite your redirects.

Should you question an existing architecture in 301?

If your site has been running for years with geo-targeted 301 redirects without user complaints and with good SEO performance, migrating to 302 is not an urgent priority. Prioritize this change if you observe concrete symptoms: support tickets, analytics showing high drop-offs, or language versions struggling to rank.

However, for any new multilingual site or any redesign, adopt 302 from the outset for IP-based redirects. It’s a best practice that costs nothing at initial implementation and helps avoid later corrections. This type of architecture can become complex at scale, especially when juggling server detection, hreflang, CDN, and cache management. To secure the implementation and avoid technical pitfalls, seeking the expertise of an SEO agency specialized in international may often save time and prevent costly errors.

  • Ensure your geo-targeted redirects return a 302, not 301
  • Add Cache-Control: no-cache, private headers on these redirects
  • Implement hreflang tags on all language versions
  • Provide an accessible language/country selector on all pages
  • Test direct access to alternative URLs to ensure they remain accessible
  • Monitor Search Console and analytics by version to detect any unwanted consolidation
Geo-targeted redirects should use 302 to preserve flexibility and avoid browser caching, while being complemented with hreflang and manual selection mechanisms. This approach ensures a good user experience and optimal indexing of each language version.

❓ Frequently Asked Questions

Un 302 transmet-il le PageRank aussi efficacement qu'un 301 ?
Oui, Google a confirmé que le 302 transfère le PageRank vers la page cible. La différence réside dans la vitesse de consolidation des signaux, pas dans la transmission elle-même.
Peut-on mixer 301 et 302 sur un même site selon le type de redirection ?
Absolument. Utilisez 301 pour les migrations définitives d'URL ou les restructurations permanentes, et 302 pour les redirections basées sur l'IP, la langue détectée ou tout contexte temporaire ou variable.
Les balises hreflang suffisent-elles sans redirection automatique ?
Hreflang aide Google à servir la bonne version dans les résultats de recherche, mais n'affecte pas l'expérience utilisateur arrivant via un lien direct ou un partage. Une redirection 302 améliore cette expérience tout en préservant l'accès manuel aux versions alternatives.
Comment empêcher les CDN de cacher les redirections 302 ?
Configurez explicitement votre CDN pour respecter les headers Cache-Control des redirections 302, notamment en ajoutant no-cache et private. Certains CDN nécessitent des règles spécifiques pour ne pas transformer ou mettre en cache ce type de réponse.
Que se passe-t-il si Googlebot crawle depuis plusieurs pays différents ?
Googlebot peut effectivement crawler depuis plusieurs localisations. Si vous servez du 302 avec hreflang correct, chaque version sera crawlée et indexée indépendamment. Sans hreflang, Google risque de considérer ces versions comme du contenu dupliqué.
🏷 Related Topics
Domain Age & History AI & SEO JavaScript & Technical SEO Domain Name Web Performance Redirects International SEO

🎥 From the same video 17

Other SEO insights extracted from this same Google Search Central video · duration 53 min · published on 03/05/2018

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.