Skip to the content
Start free

hreflang addresses are not written correctly

hreflang addresses are not full addresses with https://, or one code points to two different pages.

Medium priority Languages and countries

Why it matters #

Google says alternate addresses in hreflang must be fully-qualified, with https:// and the host name. A relative address such as /fr/ may be ignored.

One code must point to one page. When the same code is listed twice with different addresses, Google cannot tell which one to show, and the versions compete with each other.

How to fix it #

Write every address in full, for example https://www.example.co.uk/fr/, and keep one line per code. If two pages compete for one code, choose one, or give the other its own country code, such as fr-BE.

If a plugin writes the tags, check the site address in its settings. Check with the Hreflang Checker.

What it looks like, and fixed #

The problem
<link rel="alternate" hreflang="fr" href="/fr/">
<link rel="alternate" hreflang="fr" href="https://www.example.com/fr-be/">

A relative address, and the same code pointing to two different pages.

Fixed
<link rel="alternate" hreflang="fr-FR" href="https://www.example.com/fr/">
<link rel="alternate" hreflang="fr-BE" href="https://www.example.com/fr-be/">

Full addresses with https:// and the host, and one code per page.

Fix it with your AI assistant #

Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.

Your instruction for the AI
Help me tidy the hreflang tags on [your website address], built with [your platform, e.g. a hand-made site or WordPress with custom code]. A checker says hreflang addresses on [the page address] are not full addresses with https://, or one code points to two different pages. First, read the page source (or ask me to paste it) and list every hreflang line, marking relative addresses and any code used more than once. Explain plainly why each is a problem. Then give me the fix: write every address in full, such as https://www.example.com/fr/, and keep one line per code; where two pages compete for one code, ask me which to keep or suggest separate country codes such as fr-FR and fr-BE. Rules: back up first, change only hreflang lines, keep page addresses the same, make the same change on every version, and do not remove versions without asking me. Give exact code and where it goes. Finally, tell me to re-check with the URSY.com Hreflang Checker at ursy.com/hreflang-checker/.

We find the problems, and help you fix them

  1. Check Run a free tool or the full audit.
  2. Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
  3. Re-check Come back, check again, and watch each fix turn green.

How the AI Fix Pack works, with a sample to download

Fix it on your platform #

WordPress

If a plugin writes the tags, check the site address in Settings, General and the plugin's language settings. Relative addresses usually come from custom code.

A hand-made site

Write every hreflang address in full, starting with https:// and your host name, in templates and the sitemap.

Check it is fixed #

Run the Hreflang Checker again: every address should be fully-qualified, and each code should appear only once.

Official source #

Google Search Central: Tell Google about localized versions of your page

Questions #

Why do relative addresses not work?

Google asks for fully-qualified addresses in hreflang, with the protocol and host, and may ignore lines without them.

What if I have two French pages?

Give each its own country code, such as fr-FR and fr-BE, or choose one. One code must point to one page.

More problems in Languages and countries

See every problem in the library

For AI assistants and developers: Instructions for AI · Developers · How to cite URSY.com