: Is it correct to use canonical and alternate hreflang links in the same page? I have a multilingual site and I think both, canonical URL and alternate hreflang URL should be defined. The URL
I have a multilingual site and I think both, canonical URL and alternate hreflang URL should be defined. The URL structure is very simple: Language, tag and page title.
Structure: domain.com/lang/tag/page Example: domain.com/en/funny/man-walks-on-banana
The page has multiple tags. While going through pages under one category, the category name should be maintained in the URL like following:
domain.com/en/funny clicks a link domain.com/en/funny/man-walks-on-banana clicks "next" domain.com/en/funny/woman-walks-on-banana clicks "next" domain.com/en/funny/some-other-funny-stuff
When some of these pages is also related to the tag "accidents" and many more tags, it means that the page has multiple URLs, which causes duplicate content:
domain.com/en/funny/man-walks-on-banana http://domain.com/en/accidents/man-walks-on-banana
(same page, different URL, bad)
This will be handled by defining a canonical URL. We have decided not to create "sub-tags", so we need to decide which tag is the most important one for this content. So under whatever tag the page is being viewed, canonical URL refers to:
<link rel="canonical" href="http://domain.com/en/FUNNY/man-walks-on-banana" />
Now the question occurs when the site is multilingual. According Google's instructions I should set an alternate link hreflang to the finnish version of the page.
<link rel="alternate" href="http://domain.com/en/funny/man-walks-on-banana" hreflang="en" /> (english versison of the page)
<link rel="alternate" href="http://domain.com/fi/hauskat/mies-kavelee-banaanin-paalta" hreflang="fi" /> (finnish version of the page)
Alternate hreflang-links are defined in both versions, but in both versions there should still be the canonical link, so that the page is under the main tag, in its own language.
If we assume we're on the english version of the page "/en/sometag/man-walks-on-banana", would it go like this:
<link rel="alternate" href="http://domain.com/en/funny/man-walks-on-banana" hreflang="en" />
<link rel="alternate" href="http://domain.com/fi/hauskat/mies-kavelee-banaanin-paalta" hreflang="fi" />
<link rel="canonical" href="http://domain.com/en/funny/man-walks-on-banana" />
Is this a proper way to do this or not? Does the defining of a canonical link effect to the alternate hreflang-links or not? Does Google understand what I'm trying to tell them here? I hope you do. If so, what would be the proper solution?
Thanks.
More posts by @Berryessa370
1 Comments
Sorted by latest first Latest Oldest Best
What you are proposing sounds correct to me:
Each language should have one canonical page with this content on it.
Both of the following URL should have a canonical tag of <link rel="canonical" href="http://domain.com/en/funny/man-walks-on-banana" />
domain.com/en/funny/man-walks-on-banana http://domain.com/en/accidents/man-walks-on-banana
domain.com/fi/hauskat/mies-kavelee-banaanin-paalta should have the canonical tag: <link rel="canonical" href="http://domain.com/fi/hauskat/mies-kavelee-banaanin-paalta" />
Each page can have alternate hreflang links to the canonical version of the page in other languages.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.