The sitemap object

The sitemap object returns the sitemap for a specific group in the robots.txt file. The sitemap provides information about the pages and content on a site, and the relationships between them, which helps crawlers crawl a site more efficiently.

The sitemap object consists of a Sitemap directive, and a value of the URL that the sitemap is hosted at. For example:

The sitemap object has the following attributes:

sitemap.directive

Returns Sitemap.

sitemap.value

Returns the URL that the sitemap is hosted at.