手册:$wgArticleRobotPolicies

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgArticleRobotPolicies and the translation is 67% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎中文 • ‎日本語
Robot policies: $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)
默认值:array()
其他设置: 按首字母排序 | 按功能排序

详情

用于页面的机器人方针,例如标签<meta name="robots" content="noindex,follow" />,例如:

$wgArticleRobotPolicies = array( 'Main Page' => 'noindex' );

参见

手册:机器人方针Manual:Robot policy 文件: robots.txtManual:Robots.txt
属性: nofollowManual:NofollownoindexManual:Noindex
配置设置: $wgArticleRobotPoliciesManual:$wgArticleRobotPolicies$wgDefaultRobotPolicyManual:$wgDefaultRobotPolicy$wgExemptFromUserRobotsControlManual:$wgExemptFromUserRobotsControl$wgNamespaceRobotPoliciesManual:$wgNamespaceRobotPolicies