Robot policies: $wgNamespaceRobotPolicies
Allow customisation of robot policies on a per-namespace basis.
Introduced in version:1.7.0 (r14559)
Removed in version:still in use
Allowed values:(each entry indicates a namespace and a text string)
Default value:[]

Details

Robot policies for namespaces, e.g. tag <meta name="robots" content="noindex,follow" />

e.g.

$wgNamespaceRobotPolicies[NS_TALK] = 'noindex';

The default policy is given by $wgDefaultRobotPolicy, the array is made of Namespace constants as defined in includes/Defines.php (see Manual:Namespace) or the numeric identifier for the namespace.

See also

  • Manual:$wgDefaultRobotPolicy
  • Manual:$wgArticleRobotPolicies
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.