<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://knowledgebase.pirho.net/index.php?action=history&amp;feed=atom&amp;title=Sitemap_Generation_in_MediaWiki</id>
	<title>Sitemap Generation in MediaWiki - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://knowledgebase.pirho.net/index.php?action=history&amp;feed=atom&amp;title=Sitemap_Generation_in_MediaWiki"/>
	<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=Sitemap_Generation_in_MediaWiki&amp;action=history"/>
	<updated>2026-09-10T08:03:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://knowledgebase.pirho.net/index.php?title=Sitemap_Generation_in_MediaWiki&amp;diff=462&amp;oldid=prev</id>
		<title>Dex: /* robots.txt Integration */</title>
		<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=Sitemap_Generation_in_MediaWiki&amp;diff=462&amp;oldid=prev"/>
		<updated>2026-07-13T10:35:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;robots.txt Integration&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:35, 13 July 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l85&quot;&gt;Line 85:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 85:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Allow: /&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Allow: /&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sitemap: https://&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;knowledgebase&lt;/del&gt;.pirho.net/sitemap.xml&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sitemap: https://&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;www&lt;/ins&gt;.pirho.net/sitemap.xml&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-461:rev-462:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Dex</name></author>
	</entry>
	<entry>
		<id>https://knowledgebase.pirho.net/index.php?title=Sitemap_Generation_in_MediaWiki&amp;diff=461&amp;oldid=prev</id>
		<title>Dex: /* robots.txt Integration */</title>
		<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=Sitemap_Generation_in_MediaWiki&amp;diff=461&amp;oldid=prev"/>
		<updated>2026-07-13T10:35:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;robots.txt Integration&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:35, 13 July 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l85&quot;&gt;Line 85:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 85:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Allow: /&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Allow: /&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sitemap: https://&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kb&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;example&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;com&lt;/del&gt;/sitemap.xml&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sitemap: https://&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;knowledgebase&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pirho&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;net&lt;/ins&gt;/sitemap.xml&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-460:rev-461:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Dex</name></author>
	</entry>
	<entry>
		<id>https://knowledgebase.pirho.net/index.php?title=Sitemap_Generation_in_MediaWiki&amp;diff=460&amp;oldid=prev</id>
		<title>Dex: Created page with &quot;&#039;&#039;&#039;Summary:&#039;&#039;&#039; Sitemaps help search engines discover, understand, and prioritise content within a website. MediaWiki provides several methods for generating XML sitemaps, ranging from automatic generation during page edits to scheduled generation for large-scale installations. This article examines the available options, their advantages and disadvantages, and provides guidance on selecting an appropriate sitemap strategy for a MediaWiki-based Knowledgebase.  == Context...&quot;</title>
		<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=Sitemap_Generation_in_MediaWiki&amp;diff=460&amp;oldid=prev"/>
		<updated>2026-07-13T10:33:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Summary:&amp;#039;&amp;#039;&amp;#039; Sitemaps help search engines discover, understand, and prioritise content within a website. MediaWiki provides several methods for generating XML sitemaps, ranging from automatic generation during page edits to scheduled generation for large-scale installations. This article examines the available options, their advantages and disadvantages, and provides guidance on selecting an appropriate sitemap strategy for a MediaWiki-based Knowledgebase.  == Context...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Summary:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Sitemaps help search engines discover, understand, and prioritise content within a website. MediaWiki provides several methods for generating XML sitemaps, ranging from automatic generation during page edits to scheduled generation for large-scale installations. This article examines the available options, their advantages and disadvantages, and provides guidance on selecting an appropriate sitemap strategy for a MediaWiki-based Knowledgebase.&lt;br /&gt;
&lt;br /&gt;
== Context ==&lt;br /&gt;
&lt;br /&gt;
=== What is a Sitemap? ===&lt;br /&gt;
&lt;br /&gt;
A sitemap is a structured XML document that provides search engines with a list of URLs available within a website.&lt;br /&gt;
&lt;br /&gt;
The sitemap protocol allows website owners to communicate page locations, modification dates, update frequency, and relative importance. While search engines can discover content by following links, a sitemap provides a direct inventory of available content and can improve crawl efficiency.&lt;br /&gt;
&lt;br /&gt;
=== Why Search Engines Use Sitemaps ===&lt;br /&gt;
&lt;br /&gt;
Search engines continuously crawl the Internet looking for new and updated content.&lt;br /&gt;
&lt;br /&gt;
Although modern search engines are highly effective at discovering content through hyperlinks, a sitemap offers several advantages:&lt;br /&gt;
&lt;br /&gt;
* Faster discovery of newly published articles&lt;br /&gt;
* Faster identification of updated content&lt;br /&gt;
* Improved visibility of deeply nested pages&lt;br /&gt;
* Better crawl coverage for large websites&lt;br /&gt;
* Reduced reliance on link discovery alone&lt;br /&gt;
&lt;br /&gt;
Sitemaps do not guarantee indexing, but they increase the likelihood that content will be discovered promptly.&lt;br /&gt;
&lt;br /&gt;
=== Why Knowledgebases Benefit from Sitemaps ===&lt;br /&gt;
&lt;br /&gt;
Knowledgebases often contain large volumes of technical content organised into categories, namespaces and hierarchies.&lt;br /&gt;
&lt;br /&gt;
Without a sitemap, search engines may take significantly longer to discover articles that are newly created, infrequently linked, or buried deep within the site&amp;#039;s navigation structure.&lt;br /&gt;
&lt;br /&gt;
A regularly maintained sitemap helps ensure that:&lt;br /&gt;
&lt;br /&gt;
* New articles are discovered quickly&lt;br /&gt;
* Updated articles are re-crawled efficiently&lt;br /&gt;
* Search engine coverage remains comprehensive&lt;br /&gt;
* Organic search traffic can grow more consistently&lt;br /&gt;
&lt;br /&gt;
== Core Concepts ==&lt;br /&gt;
&lt;br /&gt;
=== The sitemap.xml Standard ===&lt;br /&gt;
&lt;br /&gt;
The standard sitemap format is an XML document containing one or more URL entries.&lt;br /&gt;
&lt;br /&gt;
A typical entry may include:&lt;br /&gt;
&lt;br /&gt;
* URL location&lt;br /&gt;
* Last modification date&lt;br /&gt;
* Suggested update frequency&lt;br /&gt;
* Relative priority&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;url&amp;gt;&lt;br /&gt;
    &amp;lt;loc&amp;gt;https://kb.example.com/wiki/OSI_Model&amp;lt;/loc&amp;gt;&lt;br /&gt;
    &amp;lt;lastmod&amp;gt;2026-07-13&amp;lt;/lastmod&amp;gt;&lt;br /&gt;
    &amp;lt;changefreq&amp;gt;weekly&amp;lt;/changefreq&amp;gt;&lt;br /&gt;
    &amp;lt;priority&amp;gt;0.8&amp;lt;/priority&amp;gt;&lt;br /&gt;
&amp;lt;/url&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== URL Discovery vs XML Discovery ===&lt;br /&gt;
&lt;br /&gt;
Search engines discover pages through two primary mechanisms:&lt;br /&gt;
&lt;br /&gt;
* Link crawling&lt;br /&gt;
* XML sitemap submission&lt;br /&gt;
&lt;br /&gt;
Link crawling remains the primary discovery mechanism.&lt;br /&gt;
&lt;br /&gt;
Sitemaps should be viewed as a supplementary discovery aid rather than a replacement for good site navigation.&lt;br /&gt;
&lt;br /&gt;
Well-designed internal linking remains essential.&lt;br /&gt;
&lt;br /&gt;
=== robots.txt Integration ===&lt;br /&gt;
&lt;br /&gt;
Search engines should be informed of a sitemap&amp;#039;s location through the site&amp;#039;s robots.txt file.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
User-agent: *&lt;br /&gt;
&lt;br /&gt;
Allow: /&lt;br /&gt;
&lt;br /&gt;
Sitemap: https://kb.example.com/sitemap.xml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows supporting search engines to locate the sitemap immediately during crawl operations.&lt;br /&gt;
&lt;br /&gt;
== Sitemap Generation Options in MediaWiki ==&lt;br /&gt;
&lt;br /&gt;
MediaWiki supports multiple approaches to sitemap generation.&lt;br /&gt;
&lt;br /&gt;
Each approach has advantages depending on the size and update frequency of the wiki.&lt;br /&gt;
&lt;br /&gt;
=== Option 1: AutoSitemap Extension ===&lt;br /&gt;
&lt;br /&gt;
The AutoSitemap extension automatically rebuilds the sitemap whenever page content changes.&lt;br /&gt;
&lt;br /&gt;
Events typically triggering regeneration include:&lt;br /&gt;
&lt;br /&gt;
* Article creation&lt;br /&gt;
* Article modification&lt;br /&gt;
* Article deletion&lt;br /&gt;
* Page moves&lt;br /&gt;
* File uploads&lt;br /&gt;
* Page restoration&lt;br /&gt;
&lt;br /&gt;
==== Advantages ====&lt;br /&gt;
&lt;br /&gt;
* Automatic operation&lt;br /&gt;
* No scheduler required&lt;br /&gt;
* Near real-time updates&lt;br /&gt;
* Simple installation&lt;br /&gt;
* Minimal administration&lt;br /&gt;
&lt;br /&gt;
==== Disadvantages ====&lt;br /&gt;
&lt;br /&gt;
* Rebuilds occur frequently&lt;br /&gt;
* Resource usage increases with site size&lt;br /&gt;
* May become inefficient for large installations&lt;br /&gt;
&lt;br /&gt;
==== Suitable Use Cases ====&lt;br /&gt;
&lt;br /&gt;
* Small knowledgebases&lt;br /&gt;
* Documentation portals&lt;br /&gt;
* Internal wikis&lt;br /&gt;
* Sites with fewer than approximately 10,000 pages&lt;br /&gt;
&lt;br /&gt;
=== Option 2: generateSitemap.php ===&lt;br /&gt;
&lt;br /&gt;
MediaWiki includes maintenance scripts capable of generating sitemap files on demand.&lt;br /&gt;
&lt;br /&gt;
Rather than regenerating whenever content changes, administrators execute the script through:&lt;br /&gt;
&lt;br /&gt;
* Scheduled tasks&lt;br /&gt;
* Cron jobs&lt;br /&gt;
* Automation platforms&lt;br /&gt;
* Orchestration systems&lt;br /&gt;
&lt;br /&gt;
==== Advantages ====&lt;br /&gt;
&lt;br /&gt;
* Highly scalable&lt;br /&gt;
* Predictable resource usage&lt;br /&gt;
* Supports very large wikis&lt;br /&gt;
* Suitable for enterprise deployments&lt;br /&gt;
&lt;br /&gt;
==== Disadvantages ====&lt;br /&gt;
&lt;br /&gt;
* Requires task scheduling&lt;br /&gt;
* Changes are not reflected immediately&lt;br /&gt;
* Additional administration effort&lt;br /&gt;
&lt;br /&gt;
==== Suitable Use Cases ====&lt;br /&gt;
&lt;br /&gt;
* Large public knowledgebases&lt;br /&gt;
* Documentation platforms&lt;br /&gt;
* Enterprise MediaWiki deployments&lt;br /&gt;
* Sites exceeding tens of thousands of pages&lt;br /&gt;
&lt;br /&gt;
=== Option 3: MediaWiki Sitemap REST API ===&lt;br /&gt;
&lt;br /&gt;
Recent MediaWiki releases include sitemap generation through a REST API endpoint.&lt;br /&gt;
&lt;br /&gt;
Rather than storing a static sitemap file, MediaWiki can generate sitemap content dynamically when requested.&lt;br /&gt;
&lt;br /&gt;
==== Advantages ====&lt;br /&gt;
&lt;br /&gt;
* Built into modern MediaWiki releases&lt;br /&gt;
* No external extension required&lt;br /&gt;
* Centralised platform support&lt;br /&gt;
&lt;br /&gt;
==== Disadvantages ====&lt;br /&gt;
&lt;br /&gt;
* Dynamic generation may increase server load&lt;br /&gt;
* Requires appropriate configuration&lt;br /&gt;
* May attract frequent crawler requests&lt;br /&gt;
&lt;br /&gt;
==== Suitable Use Cases ====&lt;br /&gt;
&lt;br /&gt;
* Modern MediaWiki environments&lt;br /&gt;
* API-centric deployments&lt;br /&gt;
* Administrators wishing to minimise third-party extensions&lt;br /&gt;
&lt;br /&gt;
== Practical Application ==&lt;br /&gt;
&lt;br /&gt;
=== Small Knowledgebases (Under 10,000 Articles) ===&lt;br /&gt;
&lt;br /&gt;
For smaller installations, automatic generation is often the simplest and most effective option.&lt;br /&gt;
&lt;br /&gt;
The administrative overhead is minimal and sitemap updates occur immediately after content changes.&lt;br /&gt;
&lt;br /&gt;
In practice, many smaller knowledgebases benefit from the simplicity of this approach.&lt;br /&gt;
&lt;br /&gt;
=== Medium Knowledgebases ===&lt;br /&gt;
&lt;br /&gt;
As article counts increase, regeneration costs become more noticeable.&lt;br /&gt;
&lt;br /&gt;
At this stage, administrators should consider:&lt;br /&gt;
&lt;br /&gt;
* Regeneration rate limiting&lt;br /&gt;
* Namespace exclusions&lt;br /&gt;
* Reduced generation frequency&lt;br /&gt;
&lt;br /&gt;
This balances freshness against system performance.&lt;br /&gt;
&lt;br /&gt;
=== Large Knowledgebases ===&lt;br /&gt;
&lt;br /&gt;
Large installations should generally avoid rebuilding entire sitemaps on every page modification.&lt;br /&gt;
&lt;br /&gt;
Scheduled generation is typically preferred because it:&lt;br /&gt;
&lt;br /&gt;
* Reduces server load&lt;br /&gt;
* Improves predictability&lt;br /&gt;
* Scales more effectively&lt;br /&gt;
* Supports sitemap indexes&lt;br /&gt;
&lt;br /&gt;
== Design &amp;amp; Architecture Considerations ==&lt;br /&gt;
&lt;br /&gt;
=== Regeneration on Every Edit ===&lt;br /&gt;
&lt;br /&gt;
Automatic regeneration provides the freshest sitemap possible.&lt;br /&gt;
&lt;br /&gt;
However, this convenience comes at the cost of increased server activity.&lt;br /&gt;
&lt;br /&gt;
As content volume increases, the administrative simplicity may no longer justify the resource consumption.&lt;br /&gt;
&lt;br /&gt;
=== Scheduled Generation ===&lt;br /&gt;
&lt;br /&gt;
Scheduled generation introduces a small delay between content publication and sitemap updates.&lt;br /&gt;
&lt;br /&gt;
For most knowledgebases, this delay is insignificant.&lt;br /&gt;
&lt;br /&gt;
Search engines typically do not require second-by-second awareness of content updates.&lt;br /&gt;
&lt;br /&gt;
=== Namespace Filtering ===&lt;br /&gt;
&lt;br /&gt;
Not every namespace should appear within a public sitemap.&lt;br /&gt;
&lt;br /&gt;
Common exclusions include:&lt;br /&gt;
&lt;br /&gt;
* User pages&lt;br /&gt;
* Talk pages&lt;br /&gt;
* Template pages&lt;br /&gt;
* MediaWiki system pages&lt;br /&gt;
* Administrative content&lt;br /&gt;
&lt;br /&gt;
A sitemap should focus on content that delivers value to visitors.&lt;br /&gt;
&lt;br /&gt;
=== Category-Based Sitemap Strategies ===&lt;br /&gt;
&lt;br /&gt;
Large knowledgebases can benefit from dividing content into logical sitemap groups.&lt;br /&gt;
&lt;br /&gt;
Examples include:&lt;br /&gt;
&lt;br /&gt;
* Guides&lt;br /&gt;
* Tutorials&lt;br /&gt;
* Deep Dives&lt;br /&gt;
* Reference Material&lt;br /&gt;
* API Documentation&lt;br /&gt;
&lt;br /&gt;
This approach improves management and can assist search engines in understanding site structure.&lt;br /&gt;
&lt;br /&gt;
=== Search Engine Crawl Budget ===&lt;br /&gt;
&lt;br /&gt;
Search engines allocate finite resources when crawling websites.&lt;br /&gt;
&lt;br /&gt;
Poorly configured sitemaps can waste crawl budget by presenting:&lt;br /&gt;
&lt;br /&gt;
* Duplicate content&lt;br /&gt;
* Administrative pages&lt;br /&gt;
* Low-value content&lt;br /&gt;
* Redirect pages&lt;br /&gt;
&lt;br /&gt;
Effective sitemaps help search engines focus on important material.&lt;br /&gt;
&lt;br /&gt;
== Common Pitfalls ==&lt;br /&gt;
&lt;br /&gt;
=== Including Administrative Namespaces ===&lt;br /&gt;
&lt;br /&gt;
Publishing internal administrative content can dilute sitemap quality and waste crawl resources.&lt;br /&gt;
&lt;br /&gt;
Always review namespace inclusion policies.&lt;br /&gt;
&lt;br /&gt;
=== Broken Canonical URLs ===&lt;br /&gt;
&lt;br /&gt;
Incorrect server configuration may result in:&lt;br /&gt;
&lt;br /&gt;
* Mixed protocols&lt;br /&gt;
* Internal hostnames&lt;br /&gt;
* Duplicate domains&lt;br /&gt;
&lt;br /&gt;
Search engines should only receive canonical URLs.&lt;br /&gt;
&lt;br /&gt;
=== Stale Sitemaps ===&lt;br /&gt;
&lt;br /&gt;
A sitemap is only useful if it reflects current site content.&lt;br /&gt;
&lt;br /&gt;
Regular validation should form part of routine maintenance procedures.&lt;br /&gt;
&lt;br /&gt;
=== Oversized Sitemap Files ===&lt;br /&gt;
&lt;br /&gt;
Very large knowledgebases may exceed practical sitemap limits.&lt;br /&gt;
&lt;br /&gt;
When this occurs, sitemap indexes and segmented sitemap structures should be adopted.&lt;br /&gt;
&lt;br /&gt;
== Recommended Approach ==&lt;br /&gt;
&lt;br /&gt;
=== SEO Knowledgebase Reference Architecture ===&lt;br /&gt;
&lt;br /&gt;
For most MediaWiki-based technical knowledgebases, the following approach provides an effective balance:&lt;br /&gt;
&lt;br /&gt;
* Use AutoSitemap for smaller installations&lt;br /&gt;
* Exclude administrative namespaces&lt;br /&gt;
* Publish sitemap location in robots.txt&lt;br /&gt;
* Submit the sitemap to major search engines&lt;br /&gt;
* Monitor indexing through search engine webmaster tools&lt;br /&gt;
* Migrate to scheduled generation as content volume grows&lt;br /&gt;
&lt;br /&gt;
This provides a straightforward upgrade path without introducing unnecessary complexity early in the project&amp;#039;s lifecycle.&lt;br /&gt;
&lt;br /&gt;
== Decision Matrix ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Knowledgebase Size&lt;br /&gt;
! Recommended Approach&lt;br /&gt;
|-&lt;br /&gt;
| Under 10,000 Pages&lt;br /&gt;
| AutoSitemap&lt;br /&gt;
|-&lt;br /&gt;
| 10,000-50,000 Pages&lt;br /&gt;
| AutoSitemap with rate limiting&lt;br /&gt;
|-&lt;br /&gt;
| Over 50,000 Pages&lt;br /&gt;
| generateSitemap.php&lt;br /&gt;
|-&lt;br /&gt;
| Enterprise Deployments&lt;br /&gt;
| Scheduled sitemap indexes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Key Takeaways ==&lt;br /&gt;
&lt;br /&gt;
* Sitemaps improve content discovery but do not replace good navigation.&lt;br /&gt;
* Smaller MediaWiki installations benefit from automatic sitemap generation.&lt;br /&gt;
* Larger installations should favour scheduled generation.&lt;br /&gt;
* Administrative content should generally be excluded.&lt;br /&gt;
* Sitemap strategy should evolve alongside the growth of the Knowledgebase.&lt;br /&gt;
* A well-maintained sitemap is an important component of technical SEO.&lt;br /&gt;
&lt;br /&gt;
== Related Topics ==&lt;br /&gt;
&lt;br /&gt;
* [[robots.txt]]&lt;br /&gt;
* [[MediaWiki SEO]]&lt;br /&gt;
* [[Structured Data]]&lt;br /&gt;
* [[Search Engine Crawling]]&lt;br /&gt;
* [[Search Engine Indexing]]&lt;br /&gt;
* [[Technical SEO]]&lt;br /&gt;
* [[Category Design]]&lt;br /&gt;
* [[Information Architecture]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* MediaWiki Manual: Sitemap&lt;br /&gt;
* MediaWiki Extension: AutoSitemap&lt;br /&gt;
* Sitemap Protocol Specification&lt;br /&gt;
* Google Search Central Documentation&lt;br /&gt;
* Bing Webmaster Guidelines&lt;/div&gt;</summary>
		<author><name>Dex</name></author>
	</entry>
</feed>