Jump to content

手册:$wgArticleRobotPolicies

From mediawiki.org
This page is a translated version of the page Manual:$wgArticleRobotPolicies and the translation is 38% complete.
机器人方针: $wgArticleRobotPolicies
Allow customisation of robot policies on a per-page basis.
引进版本:1.11.0 (r22615)
移除版本:仍在使用
允许的值:(each entry indicates a page name and a text string)
默认值:[]

详情

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'
];


参阅