XML Sitemaps Generator

Author Topic: Create sitemaps for multiple domains run from a single directory/CMS  (Read 5623 times)

CircuitTravel

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 14
I currently have about 12 sites run from a single CMS all with unique domain names.  I was hoping that I could create individual sitemaps for all these sites using a single instance of xml-sitemap-generator running off a scheduled task (Win2008) and either passing in parameters for the starting url and the sitemap file name and sitemap url or having it read these from a config file.  Is this possible?

I had a look at runcrawl.php to see how it works but it is obfuscated so it wasn't much help to me.  I really don't want to install multiple copies of xml-sitemap-generator (and scheduled tasks) to achieve this.

Cheers,

James.


CircuitTravel

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 14
Re: Create sitemaps for multiple domains run from a single directory/CMS
« Reply #1 on: November 28, 2013, 09:42:04 PM »
I have solved my problem.

I created a generator.conf file for each of the sites I want mapped. I then wrote a vbScript which swaps the default generator.conf file in /data for the site specific one.  The script then calls runcrawl.php.  Once the crawl has run the script then copies in the next site specific generator.conf file.  I can call my vbScript from the Windows Task Scheduler.

Maybe there is a better way?

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2