Rel alternate implementing with x default
-
Hi,
I am implementing rel alternate codes on my website but had few doubts with the same.
1. Can I have the same URL www.mysite.com as "x-default" and for "en-us" like below:
2. Will all the URL contain its own referencing code. For example, will the URL www.uk.mysite.com have
code on it or not with the other codes
Looking forward for the help guys!
Many Thanks
| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | -
Hi Hitesh,
The examples as you presented them are both correct.
-
In my view there is no issue with you using your default for en-us. It may not be necessary to reference en-us in the code as Google will know that www.mysite.com is your default for English speakers in the US in any case, but there is certainly no harm in leaving that line in there.
As to your second question, I always reference every alternative version of a page in the hreflang including the page itself, so in the example you have included code on the page on the UK site. This is perfectly fine and is how I have always implemented hreflang when dealing with pages that are similar but intended for different countries/languages.
-
Thank you Martinjn and Simon

I will go ahead with the same then!