ubricHelp

Can two pages use the same hreflang code?

Rubric check: one hreflang code for several addresses (check id hreflang_duplicate_code)

No. Each language or region code in a page's hreflang set should point to exactly one address. Rubric flags pages that list the same code, such as en-gb, for more than one URL, so Google can't tell which version to show.

Free, no card. Your report opens with this check first.

Why it matters for SEO

Google uses hreflang to show the right language or country version of a page. When one code names two addresses, the signal conflicts and Google may ignore it or pick the wrong page. It often happens when two tools add hreflang tags, or a page lists both a trailing-slash and a non-slash URL.

Does this matter for ChatGPT and AI Overviews?

There's no evidence AI search tools read hreflang directly. Google's AI Overviews draw on Google's index, which uses it to pick the language version. Clean hreflang helps the right version be the one in the index.

How Rubric scores it

MinorMinor checks cost a quarter to a half of a standard check when they fail.

Why this tier: One code, several pages.

It is judged on every page Rubric scores. It is only judged on sites with more than one language.

Every Rubric score starts at 100. When this check fails, it takes up to 6 points off. Even one failing page costs at least 3 points (half of the most), and the rest comes off as the share of affected pages grows. A warning costs less than a failure.

All the minor checks share one limit: together they can take off at most 25 points, however many of them fail.

This check doesn't cap your score. It only takes off its own points.

From the engine's scoring files, scoring 2026-v2.1 (engine d5c591d).

How common it is

Found on 1 of 95 sites where Rubric could judge it (1.1%). That is 1 of 91 judged sites in Rubric's 313-site test set and 0 of 4 sites audited on Rubric between 11 Nov 2026 and 17 Nov 2026 under the current check rules (scoring 2026-11k or later). Measured 17 Nov 2026 with scoring 2026-v2.1.

1.1% of the sites Rubric could judge have this problem. Check yours.

Free, no card. Your report opens with this check first.

How accurate the check is

Lab test: passed. On test pages built with this problem, it caught 2 of 2. On clean test pages, it stayed quiet 1 of 1 times. (Engine build bbcec7c.)

Real sites: people checked 1 of its findings by hand and 0 were wrong (0%). Last checked 14 Nov 2026. That's a small sample, so treat the rate as rough.

Lab as of 16 Nov 2026; judged findings as of 15 Nov 2026.

How to fix it

WordPress

  1. View the page source and search for hreflang to see the duplicate entries.
  2. If you run a multilingual plugin (WPML, Polylang or TranslatePress) and also an SEO plugin or manual tags that add hreflang, keep the plugin's and remove the rest.
  3. Check each language's URL setting points to one address per language.

Shopify

  1. Shopify adds hreflang for your markets and languages automatically.
  2. Duplicates usually come from tags hand-coded into theme.liquid or added by a translation app. Remove those in Online Store > Themes > Edit code, or turn off the app's hreflang feature.

Webflow

  1. Webflow Localization generates hreflang tags itself.
  2. Check Site settings > Custom code and page custom code for hand-written hreflang tags and remove them, or turn off Webflow's generated tags in the localization settings if you manage your own. Publish.

Custom code

One line per code, the same set on every version:

html
<link rel="alternate" hreflang="en-gb" href="https://example.com/uk/">
<link rel="alternate" hreflang="en-us" href="https://example.com/us/">
<link rel="alternate" hreflang="x-default" href="https://example.com/">

More hreflang checks · The full AI SEO glossary

Free, no card. Your report opens with this check first.