Perl Sitemap Generator 

A new approach to Google's Python Sitemap Generator 

Before you begin

The Perl Sitemap Generator is a Perl script that creates a Sitemap for your site using the Sitemap Protocol. This script can create Sitemaps from URL lists, web server directories, or from access logs. In order to use this script:

  • You must be able to connect to and run scripts on your web server.
  • Your web server must have Perl 5.8.0 or later installed.
  • You must know the command that launches Perl. (Generally, this is perl, but may vary by installation. For instance, if the web server has two versions of Perl installed, the earlier version may be invoked by the command perl and the later version may be invoked by the command perl2.)
  • You must know the directory path to your site. If your web server hosts one site, this may be a path such as var/www/html. If you have a virtual server that hosts multiple sites, this may be a path such as home/virtual/site1/fst/var/www/html.
  • You must be able to upload files to your web server (for instance, using FTP).
  • If you will be generating a list of URLs based on access logs, you must know the encoding used for those logs and the complete path to them.

If you aren't sure about any of this, you can check with your web hosting company.

Now you’re ready to get started. Here’s an overview of what you’ll need to do.

  1. Download the Sitemap Generator program files. Extract the files to a local directory.
  2. Create a configuration file for your site using the provided example_config.xml file as a template. Modify this file as needed for your site and save it.
  3. Upload the necessary files to your web server.
  4. Run
  5. Add the generated Sitemap to your Google webmaster tools account.
  6. Set up a recurring script. (optional)

If you are unable to use the Sitemap Generator, you can add a Sitemap to your Google webmaster tools account in another format, such as a simple text file.You can also find links to third-party programs that support Google Sitemaps here.

Last modified: 27th August 2007