Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How To Make Google Search Sitemap Indicate Alternate Language Pages? Rate Topic   - - - - -

 
  • Jamalla
  • Advanced Member
  • Members
  • Join Date: 23-Sep 17
  • 127 posts

Posted 16 February 2018 - 06:09 AM #1

Hi all,

 

I hope this time my question will be clear this time :roll:

 

For the Google Search addon, how can we make google search sitemap indicate alternate language pages?

According to Google Search support, for multilingual website the xml file should be like:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
  xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <url>
    <loc>http://www.example.com/english/</loc>
    <xhtml:link 
                 rel="alternate"
                 hreflang="de"
                 href="http://www.example.com/deutsch/"
                 />
    <xhtml:link 
                 rel="alternate"
                 hreflang="de-ch"
                 href="http://www.example.com/schweiz-deutsch/"
                 />
    <xhtml:link 
                 rel="alternate"
                 hreflang="en"
                 href="http://www.example.com/english/"
                 />
  </url>