bicyus Posted October 29, 2012 Share Posted October 29, 2012 Hi there! ;-) I've realized using mod_rewrite for pretty URLs, doesn't provide pretty urls on Sitemap.xml. i would like to have my pretty urls on sitemap.xml too, instead of "index.php?id_product=12&controller=product" here is an example web: http://www.elalmacensecreto.com/cine/63-mascara-v-de-vendetta.html and his Sitemap.xml section: <url> <loc>http://www.elalmacensecreto.com/index.php?id_product=63&controller=product</loc> <priority>0.6</priority> <lastmod>2012-10-25</lastmod> <changefreq>weekly</changefreq> <image:image> <image:loc>http://www.elalmacensecreto.com/63-194/mascara-v-de-vendetta.jpg</image:loc> <image:caption/> <image:title/> </image:image> <image:image> <image:loc>http://www.elalmacensecreto.com/63-193/mascara-v-de-vendetta.jpg</image:loc> <image:caption/> <image:title/> </image:image> </url> is this the correct behaviour? I'm on 1.5.0.17 so maybe it is old bug but maybe i should open a new bug. Thanks guys ;-) Link to comment Share on other sites More sharing options...
bicyus Posted November 6, 2012 Author Share Posted November 6, 2012 Here is the solution: http://forge.prestashop.com/browse/PNM-500 Note that if you use Categories on products url_rewrite you may need this one on 1.5.2 http://forge.prestashop.com/browse/PSCFV-5293 Link to comment Share on other sites More sharing options...
LeGastronome Posted November 10, 2012 Share Posted November 10, 2012 (edited) Sitemap take all languages activated.... not only the language activated for the shop... result it's the mess ! it uses function : /** * Return available languages * * @param boolean $active Select only active languages * @return array Languages change line 148 by : $langs = Language::getLanguages(true,$id_shop); > Loop on products are completely wrong ! SQL Too Edited November 10, 2012 by LeGastronome (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts