Extension:ManualSitemap

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.

You should use this extension ONLY if you can't use original utility because of safe mode or some kind of another security settings.

Disclaimer
This extension is a fixed version of abandoned extension Extension:Google Sitemap. Since it is not fixed for already 2 years, I took responsibility, fixed all known bugs and published it here. Also, I am going to fix and complete it in future. Many people, including me, can't use the maintenance scripts...

'''Please, credit Francois Boutines for original idea. I really hope that he will be back...'''

All the text below is taken from the original description. Please, if you have any questions - please look there first.

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

ManualSitemap Extension creates a Special:ManualSitemap 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:ManualSitemap 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, ManualSitemap Extension can also estimate the revision frequency of your pages and associate them a priority according various schemes.

Installation

 * 1) Extract the archive into /extensions directory
 * 2) Add the following lines near the end in the LocalSettings.php file:

New features in 1.1 (by Thomas):
The last thing is a warning, if servers that fetch the sitemap, could not be notified automatically. Sometimes web hoster does not allow the fopen command to call urls (allow_url_fopen=false). Also a link where the user can manually inform the server like google will be shown.

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

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

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

To update the Sitemap, simply visit Special:ManualSitemap 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.