Extension:AutoSitemap/de

The AutoSitemap extension automatically builds a "sitemap.xml" file at every page create/edit/delete event. Sitemap file helps search engines to observe your site’s pages. Diese Erweiterung basiert auf der Erweiterung.

Rationale
I do not have the possibility to update my sitemap via scheduler (like cron) because of the hosting provider, and I also do not want to update it manually.

So I edited an existing extension to update the sitemap by itself at any page edit, create, delete, rename, upload, etc events.

Note
This extension can be used on small MediaWiki instances (up to 10k pages). If your instance is larger than 50k pages, you should use instead because it does support sitemap index file, can create separated files for each namespace, compress sitemap files and also designed to be run on schedule instead of triggering after each page modification.

Konfigurieren
Es gibt einige optionale Parameter, die die Sitemap-Generierung ändern. Du kannst diese in deiner LocalSettings.php einstellen.

Dateiname
Du kannst den Dateinamen der Sitemap festlegen, indem du folgendes festlegst:



Basis-URL festlegen
By default all URLs in sitemap use $wgCanonicalServer (or $wgServer, if it doesn’t set) as domain prefix. If you want to set it to another one, you can change it manually by setting:

Search engines notification
You can notify web sites you want about the update of sitemap. Just write all notify URLs as array:

Sometimes web hoster does not allow the fopen command to call URLs (allow_url_fopen=false). If you can’t or doesn’t want to use notification, set this to empty array by deleting all lines between brackets.

Exclude types of pages from sitemap
You can exclude namespaces or exact pages from including them to sitemap:

Set page update frequency
You can manually specify the recommended frequency with which all addresses will be checked by search engine:

Verfügbare Werte sind:

hourly daily weekly monthly yearly adjust - for automatic determination of frequency based on page edits count



Seitenpriorität festlegen
You can manually specify priority for certain pages or namespaces:

oder

oder

Rate-limit recreation of the sitemap
For wikis with many pages, generating the sitemap may consume significant resources, so you may not want it to happen too frequently. With this option, you can specify that the sitemap should only be recreated if it's at least a certain number of seconds old.

Rechte
Your MediaWiki folder should be permitted for write operations ( with   or  ).



Htaccess, nginx
If you want to see a human-readable sitemap, allow read access for sitemap.xsl file in your site config ( file or other).



Siehe auch

 * Sitemaps-Protokoll - Wikipedia über Sitemaps
 * Google über Sitemaps