Icarus Posted July 23, 2009 Share Posted July 23, 2009 There seem to be an issue with the links that the sitemap module generatesPresta version 1,1Friendly URLs enabledThe generated URLs look like this:http://www.example.com/37-CategoryName&id_lang=1When I go to this URL on my site, Presta is doing a redirect to the same page without the id_langGoogle 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 More sharing options...
Cédric Girard Posted July 23, 2009 Share Posted July 23, 2009 HiIf 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_rencontreesTake 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 More sharing options...
Icarus Posted July 23, 2009 Author Share Posted July 23, 2009 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 sitemapSo I am also string_replacing all the id_lang in the same script. Link to comment Share on other sites More sharing options...
Recommended Posts