# XMLSitemap Plugin

The purpose of the XMLSitemap Plugin is to create XML sitemap files as supported by all major search engines. Such a sitemap file is meant for use by search engines to make it easier to find all the content available on your site. Basically, a sitemape.xml file is a list of the URLs of all content pages on your website. For more information, see sitemaps.org. For more information on the different tags available for your XML sitemap see the XML schema for the Sitemap protocol page.

## Configuration

The configuration of the XMLSitemap plugin can be changed from the Configuration admin panel:

### XMLSitemap Main Settings

Variable | Default Value | Description
--- | --- | ---
sitemap_file | sitemap.xml | The file name of a normal XML sitemap file. This file has to be located in the public_html directory (where lib-common.php resides) and be writable from the Web server.
mobile_sitemap_file | mobile_sitemap.xml | When enabled this is the file name of an XML sitemap file for contents optimized for mobile users. This file has to be located in the public_html directory (where lib-common.php resides) and be writable from the Web server. Note: This should only be used if you should have a separate mobile site. For example, when you have a feature-phone (WAP/WML, etc) version of your site. For an ordinary mobile-friendly web site a mobile sitemap is not needed and may actually cause confusion for the search engines.
include_homepage | False | If you set this to true, the XMLSitemap plugin will automatically include the homepage into the XML sitemap file (including the mobile sitemap but not the news sitemap file).
types | article, calendar, polls, staticpages | Types of contents you would like to set in the XML sitemap file(s).
lastmod | article, calendar, polls, staticpages | Content types to include lastmod element (last modification date) in the XML sitemap file(s). Please note that the timezone should be set for your Geeklog site or the lastmod value will contain just the date and no time. Either way it will still support the W3C Datetime format. You will find the timezone setting in the Geeklog configuration under "Language and Locale", on the Locale tab.

### Priorities

Variable | Default Value | Description
--- | --- | ---
priorities | 0.5 | The priority of some contents relative to other contents. Valid values range from 0.0 (lowest) to 1.0 (highest). This value will be used by search engine crawlers just to decide what URLs you think more important, so specifying 1.0 to all types of contents will be meaningless. 0.5 is the default and means no priority value is display in the sitemap for content set to this value.

### Frequencies

Variable | Default Value | Description
--- | --- | ---
frequencies | 'weekly' for staticpages, 'daily' for others | The frequency with which some type of contents are likely to be updated. Valid values include 'always', 'hourly', 'daily', 'weekly', 'monthly', 'yearly', and 'never'. This value will be used by search engine crawlers just to decide how often they should check the contents. However, specifying 'always' doesn't mean that search engine crawlers will surely visit your site. So, specifying 'daily' or 'weekly' would be better in most cases. Specifying 'hidden' means no frequency is displayed for the content.

### Ping

Variable | Default Value | Description
--- | --- | ---
ping_google | True | If you set this to true, the XMLSitemap plugin will automatically inform Google crawlers when you update contents. For main Sitemap file only.
IndexNow | False | If you set this to true, the XMLSitemap plugin will automatically inform IndexNow by a ping that a URL and its content has been added, updated, or deleted. IndexNow will then inform search engines like Bing and Yandex of these changes. To submit URLs, you must "prove" ownership of the website for which URLs are being submitted by hosting at least one text file within the website. Once you submit your URLs to search engines, search engines will crawl the key file to verify ownership. Only you and the search engines should know the key and your file key location. Your key should be random numbers and letters at least 8 characters long. Create a ".txt" file with the name being your key and place it in the root directory of your website. If you choose you can specify that your key file is hosted in another folder on on your website. For more documentation see IndexNow or Bing IndexNow.
IndexNow Key |  | A key is needed to match the ownership of the domain along with submitted URLs. It should be random numbers and letters and be a minimum of 8 characters long.
IndexNow Key Location |  | If blank, the root URL for your site is assumed as the location for the txt file which allows search engines to verify ownership. If needed you can specify a different folder within your website. The location if specified needs to be a valid URL that includes the text file name.

### News Sitemap

Variable | Default Value | Description
--- | --- | ---
news_sitemap_file | news_sitemap.xml | When enabled this is the file name of an XML sitemap file for Google News. A Google News sitemap lets you control which content you submit to Google News. This file has to be located in the public_html directory (where lib-common.php resides) and be writable from the Web server.
news_sitemap_topics | (empty) | A list of topic ids. Only articles that belong to 1 or more of these topics (either directly or inherited) will be included in the news sitemap. If no topics ids are included then all topics are included.
news_sitemap_age | 172800 | The maximum age in seconds of the articles to include in the news sitemap. If 0, then age is not a factor. Currently Google News recommends articles with a max age of 2 days (or 172800 seconds).