Post by rakibul on Dec 2, 2023 9:19:05 GMT
.How to check for hreflang on your multilingual site How do you know if your site has hreflang? Let's say you have a site in Italian and English (regardless of geographic area): by right-clicking on a page of your site and choosing "View page source" you should find something like this in the head section . <link rel=”alternate” hrel=”alternate” href=”https://www.miosito.com/it/mia-pagina” hreflang=”it ” /> As you might imagine, there are 2 variable parts of these strings: 1. href : is the address of your language page.
The hreflang can also be crossdomain, that is, it can refer to a page on a different domain WhatsApp Number List if you have differentiated them by market (for example mysite.it for Italians and mysite.uk for the English). 2. hreflang : can contain only the language, as in the case above, or language _ geographical area (it_IT) if you want to specify both. If you have a main language, to be shown to users whose language and/or geographical area the search engine cannot establish, you can also add an x-default hreflang , like this: <link rel=”alternate” href=hreflang=”x-default” /> In the latter case the only variable part is that of the href, in which the URL that we believe to be the default one must be placed (generally the homepage). Remember that only one URL .
Per domain can be set as default. Simple, right? And instead I assure you that the error is around the corner, because there are some precautions to always keep in mind : The alternate hreflang rel must be present in all pages and specify all versions , preferably also that of the page itself; if the page my-page points to my-page , my-page must also point to my-page ; you must be careful not to link to pages whose HTTP status code may be 404 (page not found) or 301/302 (i.e. permanently or temporarily redirected);
The hreflang can also be crossdomain, that is, it can refer to a page on a different domain WhatsApp Number List if you have differentiated them by market (for example mysite.it for Italians and mysite.uk for the English). 2. hreflang : can contain only the language, as in the case above, or language _ geographical area (it_IT) if you want to specify both. If you have a main language, to be shown to users whose language and/or geographical area the search engine cannot establish, you can also add an x-default hreflang , like this: <link rel=”alternate” href=hreflang=”x-default” /> In the latter case the only variable part is that of the href, in which the URL that we believe to be the default one must be placed (generally the homepage). Remember that only one URL .
Per domain can be set as default. Simple, right? And instead I assure you that the error is around the corner, because there are some precautions to always keep in mind : The alternate hreflang rel must be present in all pages and specify all versions , preferably also that of the page itself; if the page my-page points to my-page , my-page must also point to my-page ; you must be careful not to link to pages whose HTTP status code may be 404 (page not found) or 301/302 (i.e. permanently or temporarily redirected);