Jump to content

Pretty URLs + Sitemap


Recommended Posts

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

  • 2 weeks later...

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 by LeGastronome (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...