Home / News / Hreflang Magic: Routing Wins, Ranking Loses for Local SEO
Hreflang Magic: Routing Wins, Ranking Loses for Local SEO
Local businesses often depend on hreflang tags to serve region‑specific pages, yet Google’s latest guidance confirms that these tags only direct users to the appropriate URL and don’t improve rankings. Grasping this distinction is essential for ensuring AI‑driven assistants like ChatGPT and Gemini surface the correct local content.

Key Highlights
- ✓Hreflang tags route users correctly but don’t boost rankings
- ✓Google treats non‑indexed hreflang URLs as alternate names
- ✓Incorrect canonicalization can break local routing
- ✓AI assistants rely on accurate routing for local answers
Summary: Local businesses often rely on hreflang tags to target specific regions, but a recent Google insight shows these tags can route users to the right page without boosting rankings. Understanding this nuance is key for getting your store found by AI search engines like ChatGPT and Gemini.
What Happened
In August 2026, Google’s Gary Illyes clarified a long‑standing SEO mystery. When a set of hreflang URLs is only partially indexed—say, the U.S. version is indexed but the UK and India versions are not—Google still shows the correct country‑specific URL in the SERP. This behavior, dubbed the Hreflang Magic Trick, means the tags route users correctly but do not influence ranking.
The story began in 2018 when SEO expert Glenn Gabe published a case study where UK and Indian pages were canonicalized to a U.S. page. Despite being technically wrong, the non‑indexed pages still appeared in local search results. Google’s John Mueller confirmed the phenomenon, calling it a “magic trick.” Eight years later, Illyes labeled those URLs as alternate names and explained the underlying mechanism.
Key Details
- Routing vs. Ranking: Hreflang tags signal to Google which language or region a page targets. They help Google choose the right version to display, but they do not act as a ranking factor.
- Alternate Names: Google treats non‑indexed hreflang URLs as alternate names for the indexed page, allowing the correct version to surface in local SERPs.
- Canonicalization Pitfall: Canonicalizing all hreflang variants to a single URL can break the routing logic, leading to mis‑served content for users.
- AI Search Impact: AI assistants (ChatGPT, Gemini, Perplexity) rely on Google’s index. If your hreflang URLs are misconfigured, the AI may fetch the wrong version, confusing local customers.
- Search Console Visibility: Search Console may show “not indexed” for non‑primary hreflang pages, yet those pages still rank in SERPs.
What It Means for Your Business
1. Focus on Accurate hreflang Tags: Ensure each country/language version has its own URL and correct hreflang attributes. Avoid canonicalizing them all to a single page.
2. Monitor Routing, Not Ranking: Use tools like VisibilityAI’s AI visibility scorecard to track how often your pages are served to the right audience. Ranking changes may be minimal, but correct routing can improve click‑through rates.
3. Prepare for AI Assistants: When AI tools like ChatGPT answer location‑based queries, they pull from the indexed pages. If your routing is off, customers may see U.S. content instead of local information.
4. Local Citation Strategy: Consistent local URLs and accurate hreflang tags enhance citation quality. AI search engines cross‑reference citations, so a clean hreflang setup boosts discoverability.
5. Avoid Over‑Canonicalizing: Keep the canonical tag on the primary page and use hreflang for the others. This preserves the routing benefit without penalizing rankings.
Practical Checklist
- [ ] Each region has a unique URL.
- [ ] hreflang tags are correctly paired with
rel=alternate. - [ ] Canonical tags point to the primary language page.
- [ ] Use Google Search Console to verify hreflang coverage.
- [ ] Test with AI assistants to confirm the correct version appears.
Implementing these steps aligns your local SEO strategy with Google’s routing logic, ensuring that AI‑powered search assistants deliver the right information to your customers.
Why This Matters For Your Business
For local and small businesses, visibility in AI‑driven search is becoming as crucial as traditional SERPs. When a customer asks a voice assistant or chat AI for your store’s hours, Google pulls from the indexed page that best matches the user’s location. If your hreflang tags misroute, the assistant may deliver U.S. or generic information, leading to lost sales. AI search engines also aggregate citations from local directories, review sites, and social platforms. A clean hreflang structure signals to these engines that your business truly serves a specific region, which can improve the AI’s confidence in citing your business. This translates to higher click‑through rates from AI assistant responses and better overall discoverability. In short, mastering the routing side of hreflang ensures that every AI‑powered interaction points customers to the correct local page, reinforcing trust and driving conversions.
Frequently Asked Questions
Does hreflang affect my page’s ranking?
No. Hreflang tags are a routing tool, not a ranking factor. They tell Google which version of a page to show to users in a given region, but they don’t boost the page’s position in the results.
What happens if my hreflang URLs aren’t indexed?
Even when a hreflang variant isn’t indexed, Google can still serve it as an alternate name in local SERPs, so users may see the correct version despite the “not indexed” status.
How can I test if my hreflang setup is correct?
Check Google Search Console’s hreflang report, preview the URLs in a browser with a location‑specific IP or VPN, and query AI assistants to verify they return the appropriate local content.
Is your business showing up in AI search?
Get your free AI visibility audit - see if ChatGPT, Perplexity, and Google AI actually recommend you.
