                          Google XML Sitemap SEO
                          by Jack York aka Jack_MCS
                        at www.oscommerce-solution.com

This addon provides XML sitemap files used by all of the search engines. It
is very useful for SEO purposes.

Based upon Chemo's original: http://addons.oscommerce.com/info/3233

The support thread is at:
http://forums.oscommerce.com/index.php?showtopic=330175


Installation:
*************************************************
1) Upload all of the files in the catalog directory to the correct location on 
your server.

2) Set the file permissions on the sitemap... files to the same settings on the 
images directory.

3) Upload the included google_xml_sitemap_seo_install.php file into the root of 
your shop and then execute it by visiting its url, like this:

https://YOUR_DOMAIN/google_xml_sitemap_seo_install.php

If the database changes already exist, it will give you options as to how to
proceed.

4) If you want to use the manual run option, in includes/application_top.php add 
the following before the final ?> This option can be used instead of a cron job. 
The cron job is preferable but this may needed for sites that can't have one.

  /**** Begin Google Sitemap Manual Run ****/
  if (strpos(GOOGLE_XML_SITEMAP_MANUAL_IP, $_SERVER['REMOTE_ADDR']) !== FALSE) {
      $future_date = strtotime('+' . GOOGLE_XML_SITEMAP_MANUAL_RUN . ' day');
      if ($future_date <= date('Y-m-d')) {
          tep_redirect(HTTP_SERVER . DIR_WS_HTTPS_CATALOG . 'googlesitemap/index.php');  //   
      } 
  }
  /**** End Google Sitemap Manual Run ****/

5) Go to admin->Configuration->Google XML SEO and set the options to your liking. The
   default settings will create the index, categories and products site map files. You
   have to enable the settings to generate other site map files. Whichever files you
   end up using, be sure to add those to your google sitemap account.

6) Go to http://YOUR_DOMAIN/googlesitemap/index.php, where YOUR_DOMAIN is your domain.
   If the sitemaps fail to generate, enable the diagnostic option in the settings and
   try again. If the error isn't obvious at that point, post the problem, along with
   the diagnostic output in the support thread.

7) Follow the instructions on that page.

8) Create a cron job so the script is ran automatically. This is not needed if Manual Run
option (Step 4) has been used. The general cron job syntax is shown below but it can vary 
with the host:

php /home/YOUR USERNAME/public_html/googlesitemap/index.php

The support thread is at
http://forums.oscommerce.com/topic/330175-google-xml-sitemap-seo/

