Hreflang implementation help?

Hi guys please help me with hreflang.

My site is example.com/hello is in spanish and example.com/hello?lang=1 in english!

I can’t seem to figure how to add hreflang!

Do I only need to point from one page to another with one link or do I also have to include the link to current page like so?

<link rel="alternate" href="http://example.com/hello" hreflang="es" />
<link rel="alternate" href="http://example.com/hello?lang=1/" hreflang="en" />

Do I need to always show 2 link on just one pointing to the alternative language?

You asked this a few months ago.

How to properly implement hreflang?

In the resource I linked to in that thread, Google states:

Each variation of the page should include a set of <link> elements in the <head> element, one link for each page variant including itself . The set of links is identical for every version of the page. See the additional guidelines.

2 Likes

I got you now each page has got to contain link to all available variations of that page including itself!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.