Extension:Google Sitemap

Note: Since MediaWiki 1.6, the MediaWiki core has a Google site map generator which may be more appropriate than this extension. It is a command-line utility, and it is located at maintenance/generateSitemap.php in your MediaWiki directory.

Google Sitemap is a small, non-intrusive Google Sitemap generator.

Presentation
Google Sitemap Extension implements a Special:GoogleSitemap page which allows you to automatically create and update a Google Sitemap for a particular Mediawiki setup. This essentially allows google to perform smarter explorations of it.

The Special:GoogleSitemap page is designed for bureaucrats/administrators. It saves a XML Sitemap file called sitemap.xml (at the root of the wiki by default) and prints some reporting (quite similar to Special:Popularpages).

The XML file has the following properties:
 * it is sorted by decreasing article popularity (ie. highest number of hits).
 * it contains articles only : no redirection pages, nor any other special/external page (google robots will do these, probably).
 * it does not include pages in the reserved Mediawiki namespace (nor in the associated talk namespace).

In order to produce more relevant Sitemaps, Google Sitemap Extension can also estimate the revision frequency of your pages and associate them a priority according various schemes.

Download and Installation
The installation is pretty straightforward: Do not Forget:
 * 1) put GoogleSitemap.php in your extensions directory.
 * 2) put SpecialGoogleSitemap.php in the includes directory
 * 3) add to your LocalSettings.php:

You must create the file sitemap.xml in your root directory, and chmod it (change permissions) to 777 before running Special:GoogleSitemap

That's it!

First step
Visit the Special:GoogleSitemap page, then give google the url of the file that was just created (a link will be provided).

Update
On a regular basis, visit Special:GoogleSitemap as a bureaucrat, or do some server-side trickery at your own risk. ;)

Parameters
The Special:GoogleSitemap page accepts the limit and offset parameters, eg: Special:GoogleSitemap&limit=250, will build a Sitemap out of the 250 'best' articles (so beware when navigating this page, as it will produce a new sitemap each time, you'll be warned though).