Manual:$wgDefaultRobotPolicy/zh

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

Other languages:
Deutsch • ‎English • ‎Lëtzebuergesch • ‎dansk • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎العربية • ‎മലയാളം • ‎ไทย • ‎中文 • ‎日本語
机器人方针: $wgDefaultRobotPolicy
Allows specifying the default robot policy for all pages on the wiki
引进版本:1.12.0 (r30602)
移除版本:仍在使用
允许的值:(text string appropriate for a "robots" meta tag)
默认值:'index,follow'
其他设置: 按首字母排序 | 按功能排序

详情

Allows specifying the default robot policy for all pages on the wiki. The default is to encourage indexing and following of links. This can be overridden on a per-namespace and/or per-article basis.

例如:

$wgDefaultRobotPolicy = 'noindex,nofollow';
$wgNamespaceRobotPolicies = array( NS_MAIN => 'index,follow' );

would forbid indexing and following of links on all pages outside the main namespace.

参见

外部链接