: Xhtml alternate hreflang, will it ruin my sitemap for Bing/Yahoo and other SE's? I'm concerned. I recently updated my sitemap generator to create xhtml tags with hreflang in it, to indicate duplicate
I'm concerned. I recently updated my sitemap generator to create xhtml tags with hreflang in it, to indicate duplicate content pages for different languages. Here's an example:
<url>
<loc>http://www.mysite.dk/da</loc>
<changefreq>daily</changefreq>
<priority>0.5</priority>
<xhtml:link rel="alternate" hreflang="da" href="http://www.mysite.dk/da" />
<xhtml:link rel="alternate" hreflang="en" href="http://www.mysite.dk/en" />
</url>
Google loves this, and swallows it whole, but since Bing doesn't recognize the xhtml-tag, will all my alternate references not be excluded by Bing, and therefore not appear in their searches?
Should I really make a separate sitemap with xhtml-tags for Google, and serve it from e.g. mysite.dk/GoogleSitemap.xml, and make another one with URL-elements for all the different language-versions of my pages, and serve it from e.g. mysite.dk/NormalSitemap.xml, and only include the latter in my robots.txt?
Thanks for any input!
Sincerely, Ultroman
More posts by @Si4351233
1 Comments
Sorted by latest first Latest Oldest Best
For Bing, you should use content-language code in the head of the document.
<meta http-equiv=”content-language” content=”en-us”>
Or the alternative in <html>
<html lang=”en-us”>
blogs.bing.com/webmaster/2011/03/01/how-to-tell-bing-your-websites-country-and-language/
But remember that calls between pages with different languages should be reciprocal.
support.google.com/webmasters/answer/2620865?hl=en
So, in your sitemap you should have also this
<url>
<loc>http://www.mysite.dk/en</loc>
<changefreq>daily</changefreq>
<priority>0.5</priority>
<xhtml:link rel="alternate" hreflang="da" href="http://www.mysite.dk/da" />
<xhtml:link rel="alternate" hreflang="en" href="http://www.mysite.dk/en" />
</url>
Bing would ignore alternate meta, but it won't ignore url reference.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.