seo – Can we implement hreflang on root domain for one country and on sub-folder for another country?

Is it possible for 2 countries, we can implement hreflang tags on root domain and a sub-folder, for example for US hreflang on www.example.com and for Italy www.example.com/IT can we do it like this?

I have added both urls in Google search console & submitted separate sitemaps, but Google is counting all pages (including sub-folders) for the main domain, so I am thinking that Google is considering main domain (root domain) as a whole website not a country specific as per hreflang.

If you know about this or have similar experience, then Appreciate your help! Thanks, Adil

How To Use Hreflang Correctly?

How to Use HREFLang Correctly?

seo – Internalization of a .co.uk site, use hreflang?

I have a .co.uk price comparison website I want to expand from the UK to Europe and the United States, I wonder how much organic reach I can achieve. It will remain in English for a while.

Having a look at https://support.google.com/webmasters/answer/189077

What I think I might need to do is setup rewrite in my web.config for

domain.co.uk/en-gb/
domain.co.uk/en-us/
domain.co.uk/en-fr/
domain.co.uk/en-es/
domain.co.uk/en-de/

and show the one of these relevant hreflang

<link rel="alternate" href="http://domain.co.uk/en-gb/" hreflang="en-GB" />
<link rel="alternate" href="http://domain.co.uk/en-us/" hreflang="en-US" />
<link rel="alternate" href="http://domain.co.uk/en-au/" hreflang="en-FR" />
<link rel="alternate" href="http://domain.co.uk/en-es/" hreflang="en-ES" />
<link rel="alternate" href="http://domain.co.uk/en-de/" hreflang="en-DE" />

Is this my best option?

8 – hreflang links added to page source without translation

When Interface Translation module is enabled in Drupal 8, I get hreflang links to ALL languages on the site for every page view sourse, no matter if the content is translated or not.

enter image description here

If alternate hrefland is active on all of the pages, even untranslated ones, it creates some SEO problems.

I want to remove these links. Is any Drupal way to do this?

How can I add Hreflang tags in WordPress? – SEO Help (General Chat)

You can add hreflang tags to your WordPress website without a plugin, by updating your header. php file. To access this file, you’ll need to navigate to Appearance > Theme Editor, or use File Transfer Protocol (FTP). In this example, the tags need to be added to the English language content.

When should you use the hreflang tag in Sitemaps?


When should you use the hreflang tag in Sitemaps?

metatag_hreflang outputting extra hreflang tags

I need to generate hreflang tags in my website and I’ve installed metatag_hreflang submodule (belongs to metatag module)

It’s now outputting the following

<link rel="alternate" hreflang="en" href="https://domain.com/ca/en/home" />
<link rel="alternate" hreflang="fr" href="https://domain.com/ca/fr/home" />
<link rel="alternate" hreflang="en-CA" href="https://domain.com/ca/en" />
<link rel="alternate" hreflang="fr-CA" href="https://domain.com/ca/fr" />

I don’t need the extra “en” or “fr” I’ve already defined it at the bottom such as en-CA and fr-CA.

how do I get rid of the first 2 lines that it’s outputting. This is not happening on other pages, it’s only happening on the Homepage.

seo – Applying hreflang and canonical to a website with multiple domains and subfolders with different languages

Currently I have a website with multiple domains, each domain for a specific language. However, I also have sub folders with each language. For example:

www.en_example.com/en
www.en_example.com/fr
www.fr_example.com/en
www.fr_example.com/fr

And of course the www.en_example.com/fr domain is the same content as www.fr_example.com/fr

The meta tags in the english site

<link rel='alternate' href='https://www.en_example.ca/en' hreflang='en' />
<link rel='alternate' href='https://www.en_example.ca/en' hreflang='en-ca' />
<link rel='alternate' href='https://www.fr_example.ca/fr' hreflang='fr' />
<link rel='alternate' href='https://www.fr_example.ca/fr' hreflang='fr-ca' />
<link rel='alternate' href='https://www.en_example.ca/en' hreflang='x-default' />
<link rel='canonical' href='https://www.en_example.ca/en' />

The meta tags in the french site

<link rel='alternate' href='https://www.en_example.ca/en' hreflang='en' />
<link rel='alternate' href='https://www.en_example.ca/en' hreflang='en-ca' />
<link rel='alternate' href='https://www.fr_example.ca/fr' hreflang='fr' />
<link rel='alternate' href='https://www.fr_example.ca/fr' hreflang='fr-ca' />
<link rel='alternate' href='https://www.en_example.ca/en' hreflang='x-default' />
<link rel='canonical' href='https://www.fr_example.ca/fr' />

When I test the URLs in the SEO tool, the domain language URL with the same locale to the domain, it works. But when I change the locale it fails. Example:

Testing FR:
https://www.fr_example.ca/fr -> It works
https://www.fr_example.ca/en -> Returns error: “Missing return link” & “Non-self-referencing canonical URL in HTML”

Testing EN:
https://www.en_example.ca/en-> It works
https://www.en_example.ca/fr -> Returns error: “Missing return link” & “Non-self-referencing canonical URL in HTML”

I tried adding the URLs to the language but it complains that there are duplicate tags with the same language.

Any ideas/suggestions? Am I missing some tags or am I doing it wrong?

Thanks!

domains – How to solve error: Missing return tags hreflang in multilanguage website

I have a multilanguage website, which has the following properties:

  1. It does not have a .com/ page, it always usex suffixes for every language, i.e. example.com/es, example.com/en, etc.
  2. I have configured <link rel="alternate" hreflang="es" href="http://www.example.com/es" /> for every language.
  3. I am using also <link rel="alternate" hreflang="x-default" href="http://www.example.com" /> as recommended by Google ( see here )

However, I am still getting the error. I don’t know if it is due to not having a example.com/ page, because the user is always re-directed to the suffixed version, based on the browser default language.

seo – Hreflang attribute on tag

Recently I discovered that we can add hreflang to our <a> tags to inform about the language of the page which is being linked.

It seems to me that it is a perfect fit for links pointing to localized version of a current page. However, the question is whether search engines actually pay attention to this attribute? If not, then it is just a couple of extra bytes which can only harm SEO (even if by little).

I was long thinking about adding some extra info to such “localized” links as it kind of makes sense. We do have those on the website, but we do not really want them to be treated in the same way as other links. After all, localized versions of the website should live in parallel and we do not necessarily want search engines to think that Page Rank should flow as easily between them as within them.

Would be great if someone could share their insight.