Media Wikiにはサイトマップ生成ツールが付属しています。 cronで定期的に生成しておくのが良いですね。
このサイトでは下記のようなコマンドで生成しています。
/usr/bin/php /path-to-mediawiki/maintenance/generateSitemap.php --compress=no --fspath /path-to-mediawiki/sitemap/ --server='http://www.dondari.com' --identifier=wiki --urlpath='http://www.dondari.com'
生成されたファイル
$ ls -l /path-to-mediawiki/sitemap/ sitemap-index-wiki.xml sitemap-wiki-NS_0-0.xml sitemap-wiki-NS_14-0.xml sitemap-wiki-NS_274-0.xml sitemap-wiki-NS_6-0.xml sitemap-wiki-NS_8-0.xml
indexファイルの内容
$ cat sitemap/sitemap-index-wiki.xml <?xml version="1.0" encoding="UTF-8"?> <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap> <loc>http://www.dondari.com/sitemap-wiki-NS_0-0.xml</loc> <lastmod>2013-09-27T12:13:01Z</lastmod> </sitemap> <sitemap> <loc>http://www.dondari.com/sitemap-wiki-NS_6-0.xml</loc> <lastmod>2013-09-27T12:13:01Z</lastmod> </sitemap> <sitemap> <loc>http://www.dondari.com/sitemap-wiki-NS_8-0.xml</loc> <lastmod>2013-09-27T12:13:01Z</lastmod> </sitemap> <sitemap> <loc>http://www.dondari.com/sitemap-wiki-NS_14-0.xml</loc> <lastmod>2013-09-27T12:13:01Z</lastmod> </sitemap> <sitemap> <loc>http://www.dondari.com/sitemap-wiki-NS_274-0.xml</loc> <lastmod>2013-09-27T12:13:01Z</lastmod> </sitemap> </sitemapindex>
個別ファイルの内容
$ cat sitemap/sitemap-wiki-NS_0-0.xml <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://www.dondari.com/.vimrc%E3%83%A1%E3%83%A2</loc> <lastmod>2013-04-20T14:00:12Z</lastmod> <priority>1.0</priority> </url> <url> <loc>http://www.dondari.com/500_Internal_Server_Error%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%AE%E9%85%8D%E7%BD%AE</loc> <lastmod>2013-04-20T13:49:47Z</lastmod> <priority>1.0</priority> </url> <url> (....snip)