Stay organized with collectionsSave and categorize content based on your preferences.
September 16, 2005
Do you have several small Sitemaps that you would like to combine into one larger one? Withversion 1.3 of the Sitemap Generator,
which we told you aboutyesterday, you can do just
that.
This version includes a new input method: sitemap, which lets you point to existing Sitemaps that
you created with theSitemap Generator. The Sitemap
Generator will create a single Sitemap that includes the URLs contained in each Sitemap you list.
To use this input method, locate the sitemap section of the config file and modify it as needed.
You should include one <sitemap> entry for each Sitemap you want to include. Each entry must
contain the path parameter, whose value should be the path and filename of an existing Sitemap
file.
Theexample_config.xmlfile included with the Sitemap Generator download includes a
sample<sitemap>section:
<-- ** MODIFY or DELETE **
"sitemap" nodes tell the script to scan other Sitemap files. This can
be useful to aggregate the results of multiple runs of this script into
a single Sitemap.
Required attributes: path - path to the file -->
<sitemap path="/var/www/docroot/subpath/sitemap.xml">
This section gives one example. You should replace this example and include an entry for each
Sitemap you want to include. Ensure that the path value is the complete path and filename on your
web server. You can list gzipped Sitemaps as well, as long as they have a.gzextension. Rather than list each Sitemap, you can use wildcards. For instance, the following entry
would include any Sitemaps that begin with the word "sitemap" and have
an.xmlfile extension:
The Sitemap Generator extracts all URLs and the optional data listed for each URL for every
Sitemap you list and creates one Sitemap with this information. At this time, we can't guarantee
that this method will work for Sitemaps created with tools other than the Sitemap Generator.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["\u003cp\u003eSitemap Generator version 1.3 allows combining multiple smaller Sitemaps into a single, larger Sitemap file.\u003c/p\u003e\n"],["\u003cp\u003eThe new "sitemap" input method in the configuration file enables you to specify the paths to existing Sitemap files for merging.\u003c/p\u003e\n"],["\u003cp\u003eYou can use wildcards in the configuration file to include multiple Sitemaps matching a specific pattern, simplifying the process of combining numerous files.\u003c/p\u003e\n"],["\u003cp\u003eThe Sitemap Generator extracts all URLs and associated data from the specified Sitemap files to create the consolidated Sitemap.\u003c/p\u003e\n"]]],["The blog post details how to combine multiple small Sitemaps into one using version 1.3 of the Sitemap Generator. This version introduces a new \"sitemap\" input method in the config file. Users can specify `\u003csitemap\u003e` entries, each with a \"path\" parameter indicating the location of an existing Sitemap file. Wildcards are also supported for including multiple Sitemaps. The generator then compiles the URLs from these files into a single, unified Sitemap. Gzipped files are also supported.\n"],null,["# Combining Sitemaps into one larger Sitemap\n\nSeptember 16, 2005\n| It's been a while since we published this blog post. Some of the information may be outdated (for example, some images may be missing, and some links may not work anymore). Read our [up-to-date documentation about sitemaps](/search/docs/crawling-indexing/sitemaps/overview).\n\n\nDo you have several small Sitemaps that you would like to combine into one larger one? With\n[version 1.3 of the Sitemap Generator](https://sourceforge.net/project/showfiles.php?group_id=137793&package_id=153422),\nwhich we told you about\n[yesterday](/search/blog/2005/09/announcing-sitemap-generator-version), you can do just\nthat.\n\n\nThis version includes a new input method: sitemap, which lets you point to existing Sitemaps that\nyou created with the\n[Sitemap Generator](/search/docs/crawling-indexing/sitemaps/overview). The Sitemap\nGenerator will create a single Sitemap that includes the URLs contained in each Sitemap you list.\n\n\nTo use this input method, locate the sitemap section of the config file and modify it as needed.\nYou should include one \\\u003csitemap\\\u003e entry for each Sitemap you want to include. Each entry must\ncontain the path parameter, whose value should be the path and filename of an existing Sitemap\nfile.\n\n\nThe `example_config.xml` file included with the Sitemap Generator download includes a\nsample `\u003csitemap\u003e` section: \n\n```\n\u003c-- ** MODIFY or DELETE **\n\n\"sitemap\" nodes tell the script to scan other Sitemap files. This can\nbe useful to aggregate the results of multiple runs of this script into\na single Sitemap.\n\nRequired attributes: path - path to the file --\u003e\n\n\u003csitemap path=\"/var/www/docroot/subpath/sitemap.xml\"\u003e\n```\n\n\nThis section gives one example. You should replace this example and include an entry for each\nSitemap you want to include. Ensure that the path value is the complete path and filename on your\nweb server. You can list gzipped Sitemaps as well, as long as they have a `.gz`\nextension. Rather than list each Sitemap, you can use wildcards. For instance, the following entry\nwould include any Sitemaps that begin with the word \"sitemap\" and have\nan `.xml` file extension: \n\n```\n\u003csitemap path=\"/var/www/docroot/subpath/sitemap*.xml\"\u003e\n```\n\n\nThe Sitemap Generator extracts all URLs and the optional data listed for each URL for every\nSitemap you list and creates one Sitemap with this information. At this time, we can't guarantee\nthat this method will work for Sitemaps created with tools other than the Sitemap Generator.\n\nPosted by [Vanessa Fox](https://www.vanessafox.com/)"]]