Jump to content

Sitemap links rejected by Google


Recommended Posts

There seem to be an issue with the links that the sitemap module generates
Presta version 1,1
Friendly URLs enabled

The generated URLs look like this:
http://www.example.com/37-CategoryName&id_lang=1

When I go to this URL on my site, Presta is doing a redirect to the same page without the id_lang
Google does not like it.

It is not so much a problem for me, since I am doing post processing on the XML anyways, but I thought I would report.

Link to comment
Share on other sites

Hi

If your shop use only one language (and only if it's this), you have to apply a correction on the gsitemap module.

See here : http://www.prestashop.com/forums/viewthread/13254/discussion_generale/module_sitemap__correctif_pour_les_problemes_rencontrees


Take care to change the id_lang code, on this row :

       WHERE l.`active` = 1 AND l.id_lang = 2');    // FILTRAGE LANGUE FRANÇAISE  ////////////////////////////////////////////////



id_lang is 2 for french language, 1 for english language (for example)


;-)

Link to comment
Share on other sites

Thanks a lot,

But, I already must do post processing on the XML to do these changes:
1. Change the host name (since I am running it on local)
2. Add newline after each URL (for readability)
3. Add my own pages at the end of the sitemap

So I am also string_replacing all the id_lang in the same script.

Link to comment
Share on other sites

×
×
  • Create New...