We have multiple English websites targeting different regions such as the US, India, and Europe.
We have implemented hreflang tags in the head section of each website to indicate the corresponding language and country. However, we are experiencing an issue where Google search results for our website in India or Europe are showing results for the US website instead.
We have also created country-specific sitemap.xml files. CDN also there and geo based we can access our website
Please advise on how we can resolve this issue and ensure that when users search for our website on Google, the search results are based on their country-specific website.
=============================================
<meta name="template" content="base-page"/>
<meta name="robots" content="index,follow"/>
<link rel="alternate" href="https://www.xyz.com/us/en.html" hreflang="en-US"/>
<link rel="canonical" href="https://www.xyz.com/us/en.html"/>
===============================================
<meta name="template" content="base-page"/>
<meta name="robots" content="index,follow"/>
<link rel="alternate" href="https://www.xyz.com/in/en.html" hreflang="en-IN"/>
<link rel="canonical" href="https://www.xyz.com/in/en.html"/>
===============================================
<meta name="template" content="base-page"/>
<meta name="robots" content="index,follow"/>
<link rel="alternate" href="https://www.xyz.com/eu/en.html" hreflang="en-GB"/>
<link rel="canonical" href="https://www.xyz.com/eu/en.html"/>
Views
Replies
Total Likes
Hi @upendarme1 ,
You may give a try by lowering the case like en-us, en-in, en-gb
Note:- The hreflang attribute is a signal, not a directive. So there’s no guarantee that search engines will display a certain version of the page.
And it’s worth pointing out that Google and Yandex use hreflang attributes. While Baidu and Bing don’t—they rely on the content-language HTML attribute.
Reference:- https://www.semrush.com/blog/hreflang-attribute-101/
Thanks
Let me try and another thing , do we need to put all countries hreflang in every page?
Views
Replies
Total Likes
Hi @upendarme1 please refer:
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/render-content-language-ba...
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/vanity-url-to-redirect-bas...
https://medium.com/tech-learnings/geolocation-redirection-in-aem-as-a-cloud-5351fec2d8b0
Hi @upendarme1 ,
You may have a look on https://www.albinsblog.com/2020/07/geo-location-based-redirects-with-cloudfront-cdn-and-apache.html#... if you want to achieve via rewrite rules
Thanks
@upendarme1 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes