Xhtml alternate hreflang, will it ruin my sitemap for Bing/Yahoo and other SE's?

by Ultroman the Tacoman   Last Updated June 10, 2015 12:01 PM

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



Answers 1


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”>

http://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.

https://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.

lucgenti
lucgenti
June 10, 2015 09:40 AM

Related Questions


Updated February 10, 2019 08:04 AM

Updated March 04, 2016 01:01 AM

Updated April 09, 2015 19:01 PM

Updated October 24, 2018 23:04 PM