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
  • Senior Member
  • Members
  • Join Date: 23-Sep 17
  • 181 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>


 
  • alaa
  • Advanced Member
  • Trial users
  • Join Date: 18-Mar 18
  • 69 posts

Posted 27 July 2018 - 02:24 PM #2

I want to apply the same. Would you please help us to enhance the sitemap.xml file to include the below details according to URL language? 

<xhtml:link 
rel="alternate"
hreflang="de"
href="http://www.example.com/deutsch/"
/>


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18348 posts

Posted 30 July 2018 - 05:46 AM #3

You should update functions in the following file

 

app/addons/google_sitemap/func.php


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • alaa
  • Advanced Member
  • Trial users
  • Join Date: 18-Mar 18
  • 69 posts

Posted 30 July 2018 - 10:08 AM #4

 

app/addons/google_sitemap/func.php

 

Thank you eCom Labs. we understand, we need a working code  :grin: