Handbuch:$wgDefaultRobotPolicy
Roboter-Richtlinien: $wgDefaultRobotPolicy | |
---|---|
Allows specifying the default robot policy for all pages on the wiki |
|
Eingeführt in Version: | 1.12.0 (r30602) |
Entfernt in Version: | Weiterhin vorhanden |
Erlaubte Werte: | (text string appropriate for a "robots" meta tag) |
Standardwert: | 'index,follow' |
Andere Einstellungen: Alphabetisch | Nach Funktion |
Details
Allows specifying the default robot policy for all pages on the wiki. The default is to encourage indexing and following of links. This can be overridden on a per-namespace and/or per-article basis.
z.B.
$wgDefaultRobotPolicy = 'noindex,nofollow';
$wgNamespaceRobotPolicies = [
NS_MAIN => 'index,follow'
];
would forbid indexing and following of links on all pages outside the main namespace.
Siehe auch
Externe Links
- About the Robots <META> tag (www.robotstxt.org)