Thats not to say the presta team dont do a good job, infact i want everyone who posts on here to say thank you to the presta team (and not me!).
Down to business, ill call it a module but its not really!
There is 1 file, it is called SMAP.php it will generate the same as a sitemap.xml when the google bot requests it! to do so i took the SQL from the google sitemap module.
all you need to do to make this work is upload it to your presta root directory folder and add 1 line to .htaccess
RewriteRule (.*)\.xml(.*) $1.php$2 [nocase]
when you point google at your sitemap (via google webmaster tools) you then say that your sitemap is called smap.xml
NOTE: i would have called it sitemap.php (and thus it would be known as sitemap.xml) but there is something already called that in the presta root!
NOTE2: this will only work at the moment if you have URL-rewrite on, i only ever build sites with it on so only needed it on.
NOTE3: at no extra cost by using this i have doubled the product entries you will submit to google!!
when you submit
Quote
it will also submit
Quote
and both are relevant and will be indexed by the google server :)
DISCLAIMER
i dont take any responsibility for anything this does or doesnt to do in the course of human (or any other) history herein this reality or therefore the party of the third part who handles the party of the second part who in tern requires singing rights over the party of the first part who would otherwise settle the party of the third part in the even of a termination of the second part!
Anyway enjoy! Hope it works like it does for me and i hope the theory behind it gets included in the next presta release *HINT HINT*
28/09 ***EDIT*** code has been updated!





Back to top









