Jump to content
Sign in to follow this  
Paolo Bru

Modulo Gsitemap 1.7.1 + funzione Cron

Recommended Posts

Sperando di fare cosa gradita, condivido una piccola modifica effettuata al modulo Google sitemap 1.7.1

Ho aggiunto una funzione al modulo e un file cron.php per poter lanciare la generazione del site map attraverso un cron del server, in modo da rigenerarla in modo regolare, senza che lo debba fare il cliente finale.


1- Aprire il file /modules/gsitemap/cron.php

2- Alla linea 14 impostare una propria chiave di sicurezza

3- Aggiungere il seguente comando per lanciare lo script:


dove XXXXXXXXXXX è la parola chiave memorizzata nel file.


  • Like 2

Share this post

Link to post
Share on other sites

Nice addition to the Presto Change Gsitemap module.
Remember that the SECRET KEY cannot contain any special URL Characters like %&? etc.
So use only Letters and numbers.

Short installation doc:
* Upload module
* Edit /modules/gsitemap/cron.php and insert a new SECRET KEY
* Add the following line to your cron (using directadmin/cpanel etc) :

wget "http://WEBSITE_URL_HERE/modules/gsitemap/cron.php?secure_key=SECRET-KEY"

* Change the text : WEBSITE_URL_HERE to your website url

Test the validity of your url by either pasting it in the address bar (without wget) or from the ssh console (with wget)


  • Like 1

Share this post

Link to post
Share on other sites


thank you guys! :-)
that's just what I was looking for.. works perfectly.

Share this post

Link to post
Share on other sites

It could be great for 1.4.1 but it is not working on our system!

we just use the default gsitemap as v.1.6

how it could be a 1.7.1????? is this a really different version?????

is it compatible with presta 1.4???

Share this post

Link to post
Share on other sites

Potete speigarmi in modo un po' più semplice la funzione di questo modulo? xD

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More