Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

rvullriede

Archived
  • Posts

    6
  • Joined

  • Last visited

Posts posted by rvullriede

  1. Hi,

     

    thanks for your feedback.

     

    replace Line 301

     

        fopen('http://www.google.com/webmasters/sitemaps/ping?sitemap='.urlencode($notify_url);

     

    with

     

        fopen('http://www.google.com/webmasters/sitemaps/ping?sitemap='.urlencode($notify_url), 'r');

     

    Regards,

    Raphael

  2. Hi,

     

    I've added a new option p to notify Google about your new sitemap.

     

    Usage:

    shell: php google_sitemap.php -zap

     

    http://domain.com/google_sitemap.php?auto=true&gzip=true&ping=true

     

     

    All Features:

    - supports multilangual categories and products

    - supports Search-Engine Safe URLs (osC default)

    - could be accessed by http or command line

    - writes to file or standard output

    - autogenerates multiple sitemaps for sites with over 50.000 URLs

    - autogenerates multiple sitemaps if filesize exceeded 10MB

    - autogenerates a index file if necessary

    - writes files compressed or uncompressed

    - auto-notify Google about sitemap or index file

     

    see readme.txt for details.

     

    Regards,

    Raphael

  3. Hi,

     

    However, the overall point is that unless you get away from the tep API on this one the CRON generation will be fairly difficult to get around.

     

    There is no problem with the sessions if you use the CLI SAPI for PHP. This is the only correct way to access php from shell.

    If you don't have shell access you could use the script over http.

     

    ... havings options such as sitmap index files (if more than one is needed - i.e. separate products versus categories to get around that 50K limit), automatic GZ compression format file save...

     

    The new version supports an new option auto.

     

    Usage:

    shell: php google_sitemap.php -za

    OR

    http://domain.com/google_sitemap.php?auto=true&gzip=true

     

    This generates multiple (if necessary [> 50000URLs or > 10MB filesize]) compressed sitemaps in the catalog folder and a corresponding index file.

     

    Regards,

    Raphael

  4. Hi,

     

    Or may be the script can be modified to write the sitemap file in another location on server ???

     

    Sure, but the best location for the sitemap is your catalog dir. See https://www.google.com/webmasters/sitemaps/...sitemapLocation. If your sitemap is located in a subdirectory (catalog/google) there could be some problems with Search-Engine Safe URLs because Google would assume that e.g. http://www.domain.com/catalog/index.php/cPath/3 is a subdirectory. In that case these URLs are not considered valid.

     

    Regards,

    Raphael

×
×
  • Create New...