Manual:GenerateSitemap.php/Google

The following is what I use to generate a sitemap which works with Google. It is the original generateSitemap.php adjusted as advised on Manual talk:GenerateSitemap.php.

Enter this into the command line of your shell: php generateSitemap.php --server=http://www.nameofyourdomain.com