Jump to content

手册:$wgArticleRobotPolicies

From mediawiki.org
This page is a translated version of the page Manual:$wgArticleRobotPolicies and the translation is 62% 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)
默认值:[]

详情

允许您为特定页面设置机器人策略。

示例

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

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


参阅