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. The command line is "php generateSitemap.php sitename" and is run from the maintenance directory at the server's command line interface. See Manual:generateSitemap.php for more information. You can consider new and fixed version of this extension - ManualSitemap instead. It is currently maintained and fixed for latest wiki release, and you won't have to apply all patches manually.

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

Google Sitemap Extension creates a Special:GoogleSitemap page which allows you to automatically create and update a Google Sitemap for your Mediawiki site. This allows Google to explore your Mediawiki site smarter.

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 probably do these).
 * it does not include pages in the reserved Mediawiki namespace (nor talk pages).

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
Installation: You must also create the file sitemap.xml in your root directory, and chmod it (change permissions) to 777 before running Special:GoogleSitemap.
 * 1) add  GoogleSitemap.php in your extensions directory.
 * 2) add  SpecialGoogleSitemap.php in the includes/specials directory (if you use 1.12 or below put it in includes)
 * 3) add this line to your LocalSettings.php file:
 * 1) add this line to your includes/SpecialPage.php file in the $mList array definition.:
 * 1) add this line to your languages/messages/MessagesEn.php file in the $messages array definition (suggest Miscellaneous Special Pages grouping).:

First step
Visit the new Special:GoogleSitemap page. A link will be provided at the top of the Google Sitemap page. Give Google this link.

Updating sitemap
The Special:GoogleSitemap page will build a Sitemap out of the 500 'most popular' articles (by accepting the limit and offset parameters, eg: Special:GoogleSitemap&limit=500).

To update the Sitemap, simply visit Special:GoogleSitemap as a bureaucrat.

Warning:

Beware when entering this page, because every time you visit this page, the page produces a new sitemap each time.

If you visit the most popular 500-1000 listed pages without returning to the top 500 list, this program will create a sitemap based on the 500-1000 pages, ignoring the first 500 pages.