If you are getting the following error when creating your sitemaps then please use this sitemaps_index.php file instead.

Fatal error: Cannot redeclare tep_db_connect()

N.B :- You must download the FULL PACKAGE below (i have only solved a problem for people with there sites in sub domains as far as i am aware. )

sitemap_index.php is the only file that is included is this download or you can change the following line in your file that you have already..


Find the following
chdir('../');

change to
//chdir('../');

the sitemaps will go into your website root...

ie... if you have www.mydomain.com/demo as your site then demo is the directory that they will be created.

Respect to all that has created and maintained this contribution.. THANK YOU..

More...