How To Set The Sitemap.xml To Indicate Alternate Language Pages

Hi,

Our website is multilingual site. The sitemap.xml is already generated for all of the pages, but the Google Search does not recognize that the website is multilingual.

According to Google Support, we should start the sitemap.xml

<?xml version="1.0" encoding="UTF-8"?>

  
    http://www.example.com/english/
    
    
    
  

Reference:

https://support.google.com/webmasters/answer/2620865?hl=en

** How can we set the sitemap.xml to indicate alternate language pages?

Thanks

Hi,

Our website is multilingual site. The sitemap.xml is already generated for all of the pages, but the Google Search does not recognize that the website is multilingual.

According to Google Support, we should start the sitemap.xml



  
    http://www.example.com/english/
    
    
    
  

Reference:

https://support.google.com/webmasters/answer/2620865?hl=en

** How can we set the sitemap.xml to indicate alternate language pages?

Thanks

Hello,

This is done by using alternate tags in the tag. CS-Cart does this automatically. Take a look:



Kind regards,

You can change the fn_google_sitemap_get_content function (app/addons/google_sitemap/func.php). Check by HEAD SECTION

Hello,

This is done by using alternate tags in the tag. CS-Cart does this automatically. Take a look:



Kind regards,

Many thanks ..

I checked the same in our website and I found it's not correct .. Do you have any idea how can I edit this part ? or it's okay to add it manually using and Head addon?

You can change the fn_google_sitemap_get_content function (app/addons/google_sitemap/func.php). Check by HEAD SECTION

Many Thanks for you reply.

This option edits the sitemap file in the code .. I am not sure how can I do this .. I checked the code and it's like not a static code .. the tags are generated dynamically ..

Many thanks ..

I checked the same in our website and I found it's not correct .. Do you have any idea how can I edit this part ? or it's okay to add it manually using and Head addon?

Many Thanks for you reply.

This option edits the sitemap file in the code .. I am not sure how can I do this .. I checked the code and it's like not a static code .. the tags are generated dynamically ..

Hello,

What do you mean with 'it is not correct'? Please tell me what is incorrect about the tags.

Kind regards,

Many Thanks for you reply.

This option edits the sitemap file in the code .. I am not sure how can I do this .. I checked the code and it's like not a static code .. the tags are generated dynamically ..

As you can see, header is static there. So you can edit it. Unfortunately function does not have hooks and it cannot be extended by addon

Hello,

What do you mean with 'it is not correct'? Please tell me what is incorrect about the tags.

Kind regards,

Many thanks for your reply.

In our website we have two languages; Arabic and English. The English is the default ..

But the Arabic alternate tag points to the English page as follows:


The issue now that our Arabic Home Page in not indexed with Google ..

As you can see, header is static there. So you can edit it. Unfortunately function does not have hooks and it cannot be extended by addon

Thanks dear friend for your reply.

The issue now that our second language Home Page in not indexed with Google ..

I think I need to work in this part of the sitemap, so second language url can be deducted.