- hreflang tells search engines which language or region version to show, but it is a hint that only works when every version links back to every other.
- AI systems have not been shown to use hreflang reliably, so separate indexable URLs and clear on-page language signals matter more than the tag itself.
- Bot logs show which crawlers fetch each language URL, which is useful evidence of access but not proof of citation or ranking.
hreflang tells search engines which version of a page to show to which audience. It does not make a page more likely to be cited by an AI system, and nothing public we can point to shows that most AI crawlers or answer engines read it at all. What multilingual setup does change is more basic: whether a separate URL exists for each language, whether every one of those URLs is fetchable and consistent with the others, and whether the page itself tells a reader or a model what language it is written in. Those three things decide whether a French-speaking user or a French-language answer system can reach the right page in the first place.
This article covers what hreflang does, the mistakes that break it most often, what is known and unknown about AI systems, and how to check server logs for language-specific fetches. It is written from documented behavior and general reasoning about how crawlers and indexes work. We have not run a controlled experiment that isolates hreflang's effect on AI answers. Be wary of anyone who claims to have, unless they publish the method.
What hreflang does
The hreflang attribute is an annotation. You place it on a page, in a sitemap, or in HTTP headers for non-HTML files, to list the other URLs that carry the same content in other languages or for other regions. A search engine that understands the set can then choose the best URL for a given searcher. A German speaker in Germany and an English speaker in the United States may both be looking at the same product, but they should land on different URLs.
Two things follow from that. First, hreflang is about selecting among equivalent pages. It is not a way to push one page above another in rankings. Second, it is a hint. Google's documentation treats it that way, and search engines can ignore annotations they find inconsistent. Think of hreflang as a request the engine may decline, not as a switch you flip.
hreflang also does not geotarget. Declaring hreflang="de-ch" does not make a page rank in Switzerland. The code describes the audience the page is written for. Where that audience is located, and which server they reach, are signals handled elsewhere in the system.
Start with one URL per language version
Before any markup, decide how language is expressed in URLs. The common patterns are subdirectories (example.com/de/), subdomains (de.example.com), and country-code domains (example.de). Each has trade-offs. Country-code domains signal location strongly, but they are expensive to run and split your authority across many hostnames. Subdomains are easy to separate for teams and infrastructure, but search engines may treat them as partly separate sites. Subdirectories are the most common choice for one company on one domain, because they keep the content together and make the structure easy to read in logs.
Whatever scheme you pick, each language version needs its own URL that returns a 200 status code when requested directly. Several setups quietly break this:
- Language is chosen by a cookie or session, and the URL never changes. A crawler sees one page no matter how many languages you serve.
- The language switcher submits a form instead of linking to a real URL.
- Language is chosen by the Accept-Language header, so a crawler that sends a default header only ever sees one language.
- A language URL redirects to the home page when a translation is missing.
Any of these means the alternates you list in hreflang may point to URLs that are not stable documents. A search engine cannot choose a version it cannot fetch, and a retrieval system cannot read a page it never receives.
A minimal correct example
Here is the head of an English pricing page. It lists two alternates and a fallback. Each other language version carries the same full set of annotations, with its own URL as the self-reference.
<head>
<link rel="canonical" href="https://www.example.com/en/pricing/" />
<link rel="alternate" hreflang="en" href="https://www.example.com/en/pricing/" />
<link rel="alternate" hreflang="de" href="https://www.example.com/de/preise/" />
<link rel="alternate" hreflang="fr-ca" href="https://www.example.com/fr-ca/tarifs/" />
<link rel="alternate" hreflang="x-default" href="https://www.example.com/pricing/" />
</head>
Check a few things in that example. The English entry refers to itself, which is required. The German and Canadian French pages must contain matching sets that point back to the English page. The canonical is self-referencing, so this page is its own preferred version. The URLs are absolute, with protocol and hostname. The language code follows ISO 639-1, with an optional ISO 3166-1 alpha-2 region code after a hyphen. That is why fr-ca is valid and why en-gb is correct for British English, where en-uk is a common mistake, since UK is not the ISO region code.
Return tags and the mistakes that break them
A return tag is the reciprocal link. If page A names page B as an alternate, page B must name page A. Search engines use reciprocity as a sanity check. An unreciprocated annotation is one of the most common reasons hreflang appears not to work, and it is easy to create. A team adds the tag to a new French page, forgets to update the English and German pages, and the pair is incomplete.
Roughly in order of how often they cause trouble, the common mistakes are these:
- Missing return tags, usually after a new language is added to the set.
- Wrong codes. "jp" is not a language code, because the language is "ja". "en-UK" should be "en-GB". Codes are case-insensitive, but the spelling has to be right.
- A region code used on its own, such as hreflang="ch", which is not a language.
- Alternates pointing to URLs that redirect, return 404, carry a noindex tag, or are blocked by robots.txt. Every target should be a canonical, indexable page.
- Relative URLs in href. Use absolute URLs.
- Mixed protocols or hostnames, so some entries use http and others https, or some use www and others do not.
- Listing a language version that is a thin stub or a machine-translated shell. The annotation can be technically valid and still point at a page the engine declines to show.
- Hand-written tags on every page. These drift over time as pages are added and renamed.
The fix for most of these is a generator. If your templates produce hreflang from a single source of truth, such as a translation table keyed by page ID, the set stays consistent across languages. If the tags are typed by hand, the set will drift, and you will not notice until a report shows the pairs are being ignored.
x-default
x-default marks the page to show when no listed language matches the user. Teams often assume it should be the English page. That is sometimes the right answer, but the real question is what a visitor with an unlisted language should see. For many sites the best target is a language selector or a neutral global page, because it lets the reader choose. If you point x-default at English, English becomes the fallback for every audience you do not serve, which may or may not match your business.
x-default is one URL per set, and it should appear on every language version with the same target. If different language pages name different x-default targets, you have created a contradiction that is hard to diagnose later.
Canonicals and hreflang
Canonical tags and hreflang answer different questions. A canonical says that this URL duplicates another, so index the other one. An hreflang says that this URL is a language version of another, so show the right one to each user. Put those together carelessly and the signals contradict each other.
The most common contradiction is a French page with a canonical pointing at the English page. That tells the engine the French page is a duplicate and should not be indexed on its own. The hreflang on the French page then has little standing, and the French version may fall out of the set. Each language version should normally canonicalize to itself. Pages that really are the same content in the same language, such as URLs with tracking parameters, should canonicalize to one address. That is a separate problem from translation, and it should be solved separately.
Watch for noindex as well. A page marked noindex should not appear in an hreflang cluster, because the engine cannot show it to anyone. Leaving a noindexed translation in the set is a quiet way to lose coverage for a language.
How AI systems may use multilingual pages
This is the part with the least solid ground. Several kinds of AI system touch web content. Training crawlers collect data for model development. Retrieval crawlers fetch pages to answer a live question. Some search features are built on top of a conventional index. Each may behave differently, and their operators do not all publish the same level of detail about how they use what they fetch.
What we can say with reasonable confidence is limited. A retrieval system needs to find a URL, fetch it, and extract text. If your French content is only reachable behind a cookie, a POST form, or an Accept-Language negotiation the bot does not trigger, that system has no French URL to read. If your French content lives at a stable address with a visible French title and body, the system has something to work with. The first condition is about access. The second is about legibility.
Whether a given AI system reads hreflang, honors it, or uses it to choose between language versions is something we could not verify from the public documentation available for the systems we looked at. Do not build a plan that assumes it does. Do not assume it does not, either. The honest position is that the annotation may be ignored, partly used, or used in ways the operator has not described. Anyone who says otherwise should be asked for the source.
Because of that uncertainty, the work that pays off regardless is the work that helps any reader. Separate URLs per language. Consistent navigation between versions. Real translated content rather than a template with a few words swapped in. Clean status codes. A sitemap that lists the language versions. These are good practice for people, and they happen to be good practice for machines too.
We also cannot promise citations. A system may fetch your French page and still answer in English from another source. It may cite the English page simply because it was easier to parse. No markup change guarantees that a model will choose your text as evidence. The public record does not support any guarantee here, so be skeptical of anyone who offers one.
On-page language signals
Several signals in the page itself tell a reader and a system what language they are dealing with. None of them is a lever on its own. Together they reduce ambiguity, and ambiguity is what makes a retrieval step guess wrong.
- The html lang attribute matches the content, so a French Canadian page carries lang="fr-CA". This is easy to get wrong when templates are cloned from the English page and the attribute is never changed.
- The title, meta description, and main headings are translated. An English title on a French body is a mixed signal.
- Navigation, footer, and form labels are translated too. A page whose body is French and whose menu is English tells a reader that the translation is partial, and a parser will record that as well.
- Dates, currencies, and units follow the locale and appear as text, not only inside images.
- Structured data, where you use it, names the language consistently with the page content.
The mixed page is the most common failure. Translated body copy inside an English template is what you get when a localization project covers the article but not the chrome around it. Readers notice it, and so does anything trying to decide what a page is about.
The same honesty applies in the other direction. Good language signals will not rescue a thin translation. A page that repeats a generic sentence in five languages is weak in all five, and the markup does not change that.
Indexing protocols and what they do not carry
IndexNow is a protocol for telling participating search engines that a URL has been added, updated, or removed. You host a key file on your domain, then submit URLs along with that key. Participating engines can then recrawl the URLs sooner than they otherwise would. Bing and Yandex have been among the engines that support it, and the list of participants has changed over time, so check the current list before relying on any particular engine.
Google has not adopted IndexNow as of this writing. For Google, you still rely on sitemaps, internal links, and Google's own tools. Check the current documentation before making a decision on that basis, because this is the sort of thing that changes.
IndexNow submits URLs. It does not carry hreflang. The annotations live on the pages and in the sitemaps, so the set has to be correct on the documents themselves. A notification that a French URL changed is useful, but it does not tell the engine which English page that French page belongs to.
For multilingual sites, the practical rule is that every language URL is a separate item to submit. When the English page changes and the French translation lags behind, you want the notification to cover the URLs that actually changed, and you want the translation to catch up. Stale translations are a content problem, and no protocol fixes them.
InstantIndexingPro is our product, and it submits changed URLs through IndexNow. It is one tool among several here. It does not change what hreflang means, and it does not decide what a search engine chooses to index.
Measuring with bot logs
Server logs are the most direct evidence you have about which crawlers request which URLs. For a multilingual site, the useful cuts are by path or host (which identifies the language), by user agent (which identifies the bot), and by time. With those cuts you can ask concrete questions. Does a given AI crawler fetch the French URLs at all? How often? Do its fetches cluster on the pages you expected, or does it wander through a section you never intended to expose?
A few cautions apply.
A user-agent string is a claim, not proof. Any client can send any string. Verifying a crawler often means checking published IP ranges or reverse DNS, where the operator provides them, and not every operator does.
A fetch is not a citation. A bot requesting your French pricing page tells you the bot tried to read it. It does not tell you whether the text was used in an answer, shown to a person, or weighed in any ranking.
CDNs and caches hide origin requests. If a CDN serves most of your traffic, origin logs will undercount what the crawler saw. Pull the CDN's logs as well, and be clear about which layer each number comes from when you report it.
Absence is ambiguous. A crawler that never fetches a French URL might not know it exists, might have no reason to fetch it, or might be operating from a source you cannot see. Zero fetches is a question to investigate, not a verdict.
Language is per request, not per page. If you serve content by Accept-Language, a bot may receive one language regardless of which URL it asked for, and your logs will not show the variant it would have seen under a different header. Test a few requests yourself with different headers, and record what comes back.
Used carefully, bot logs answer useful operational questions. Is a newly launched locale being fetched at all? Did a redirect fix reduce 404s for one language? Are retrieval bots reaching a section that a robots.txt rule was meant to block for some other reason? InstantIndexingPro logs bot fetches per URL for this kind of analysis, and the same filters work on any log store you already run.
Limits of what we can know
We cannot tell you which AI systems use hreflang today, how much weight they give it, or whether that will change. We cannot measure the effect of a markup change on AI answer quality from a log file, because the answer is produced inside a model product that we do not observe. Model behavior varies by product, by query, and by the version a provider ships this month. Any figure in a vendor report about this should come with its method, and you should ask whether the sample was independent of the vendor.
What you can measure is narrower and more useful. You can check whether the URLs exist, respond with a 200, carry matching annotations, and get fetched. Those are checkable facts, and they are the parts you control.
What to do
- Pick a URL scheme and make every language version a stable, indexable page that returns a 200 status when requested directly.
- Generate hreflang from one source of truth, so self-references and return tags stay in sync when a language is added or a page is renamed.
- Confirm each language version canonicalizes to itself, and that x-default points to the page you actually want fallback visitors to reach.
- Set the html lang attribute on each version, and translate titles, headings, navigation, and metadata along with the body.
- Submit changed URLs through IndexNow where the engine participates, and keep sitemaps current for everything else.
- Pull bot fetches per language path for several weeks before drawing any conclusion, and verify the crawlers you care about wherever the operator publishes a way to do so.
None of these steps is glamorous. They are also the ones that stay useful no matter how AI search changes.