Hreflangs for standard and french page

I am doing seo for multilingualism, I have English, French, Spanish versions of web pages. so, for english pages, i have example.com/en, and inside the page content with the default english page.

<link rel="alternate" href="http://example.com/sp" hreflang="sp" />
<link rel="alternate" href="http://example.com/fr" hreflang="fr" />
<link rel="alternate" href="http://example.com/en" hreflang="x-default" />

      

However, on the French page http://example.com/fr , do I need to do this again? for example add next page to page?

<link rel="alternate" href="http://example.com/fr" hreflang="fr" />
<link rel="alternate" href="http://example.com/en" hreflang="x-default" />
<link rel="alternate" href="http://example.com/sp" hreflang="sp" />

      

+1


source to share


2 answers


Yes, you have to do it in French, but as follows:

<link rel="alternate" href="http://example.com/en" hreflang="en" />
<link rel="alternate" href="http://example.com/sp" hreflang="sp" />

      

This is not a real problem if you leave the links fr

and x-default

on the French page, too, but this is superfluous.



For Spanish, follow these steps:

<link rel="alternate" href="http://example.com/fr" hreflang="fr" />
<link rel="alternate" href="http://example.com/en" hreflang="en" />

      

0


source


x-default

is a private language tag, so it has no meaning outside of any private conventions. You haven't specified what meaning you want to use for it, but I am assuming that you intend to use Googles value as described in Use hreflang for locale and regional URLs .

According to this documentation, the value x-default

is for

[...] indicates language selectors / redirectors that are not specific to one language or region, eg. your home page shows an interactive world map

So it seems like you shouldn't use that way.



If, for example, your home page will be used as a language selector, you can use

<link rel="alternate" href="http://example.com/" hreflang="x-default" />

      

Other parties may have different interpretations.

0


source







All Articles