Extension:Google Sitemap
From MediaWiki.org
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.
|
Google Sitemap Extension Release status: unknown |
|
|---|---|
| Implementation | Special page |
| Description | Adds a special page to create meaningful Google Sitemaps. |
| Author(s) | User:Francois.Boutines |
| Version | 0.0.5 (2006-09-18) |
| MediaWiki | 1.7.1 |
| Download | wikisources (license) |
| Parameters | limit, offset |
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.
Contents |
[edit] Download and Installation
Installation:
- add GoogleSitemap.php in your extensions directory.
- add SpecialGoogleSitemap.php in the includes directory
- add this line to your LocalSettings.php file:
require_once("$IP/extensions/GoogleSitemap.php");
You must also create the file sitemap.xml in your root directory, and chmod it (change permissions) to 777 before running Special:GoogleSitemap.[1]
[edit] Use
[edit] 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.
[edit] 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.[2]
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.
[edit] Notes
- Google Sitemap Extension was tested only with MySQL installations.
- ↑ Instructions on how to change permissions for CuteFTP, Voyager FTP, Leech FTP, Total Commander (Windows Commander), WS FTP. Using My network places, right click Sitemap.xml, then left click "Properties". Then check all 9 boxes, then click "Okay".
- ↑ Or do some server-side trickery at your own risk.

