Jump to content

Manual:$wgArticleRobotPolicies

From mediawiki.org
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Robot policies: $wgArticleRobotPolicies
Allow customisation of robot policies on a per-page basis.
Introduced in version:1.11.0 (r22615)
Removed in version:still in use
Allowed values:(each entry indicates a page name and a text string)
Default value:[]

Details

Allows you to set the robot policies for specific pages.

Example

To get the meta element <meta name="robots" content="noindex,follow" /> for "Main Page" you will need to set:

$wgArticleRobotPolicies = [
    'Main Page' => 'noindex'
];


See also