手册:$wgArticleRobotPolicies
Appearance
机器人方针: $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'
];