Mobile app version of vmapp.org
Login or Join
Sue5673885

: Should my canonical URL contain the language parameter? As I understand correct a canonical URL should point to the original URL of the website. Our website provides different languages that can

@Sue5673885

Posted in: #CanonicalUrl #GoogleSearch #Seo #Url #UrlParameters

As I understand correct a canonical URL should point to the original URL of the website. Our website provides different languages that can be switched with an URL parameter, instantly.

Our website is well translated and offers the same content in a different language and once the language parameter is not provided it will determine the language of the browser and show the right language without redirecting to add the language parameter.

There are three ways I could put the canonical URL now and I'm not sure what I should pick:


Always using example.org/?Lang=xx-XX with the language parameter that is used or the determined language when no language parameter is set.
Always using example.org/, assuming language does not matter as the content is the same in meaning. I guess this is wrong, because a crawler would be English, so it would never crawl other languages, since other languages have the same original URL, it wouldn't?
Using example.org/?Lang=xx-XX when the language parameter is provided, otherwise using only example.org/, assuming when the language is not provided the original link shouldn't contain the language, too. So it will be determined when following the canonical URL.


Currently, we are going with variant one. This, however, ended up showing us on Google with the language parameter. When the exact text matches this is reasonable. But when I search for our name I rather want to see the URL without language parameter.

What should I do?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sue5673885

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cofer257

What you're looking for is the hreflang tag. These indicate to a crawler that an alternative language version exists. The crawler will then index the page with the language that matches it's own version.

There's three implementations:


In the HTML section: <link rel="alternate" href="http://myenglishversion.com" hreflang="en-gb" />
In the HTTP header: Link: <http://myspanishsite.com/>; rel="alternate"; hreflang="es"
In the Sitemap: <url>
<loc>http://www.example.com/de</loc>
<xhtml:link rel="alternate" hreflang="en" href="http://www.exmaple.com/en" />
<xhtml:link rel="alternate" hreflang="de" href="http://www.exmaple.com/de" />
</url>


Sitemaps have to be submitted via the Webmaster tools / Search Console for the search engine.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme