Manual:$wgDefaultRobotPolicy

From MediaWiki.org
Jump to: navigation, search

Other languages:
العربية • ‎Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎Lëtzebuergesch • ‎polski • ‎português • ‎português do Brasil • ‎русский
Robot policies: $wgDefaultRobotPolicy
Allows specifying the default robot policy for all pages on the wiki
Introduced in version: 1.12.0 (r30602)
Removed in version: still in use
Allowed values: (text string appropriate for a "robots" meta tag)
Default value: 'index,follow'

Other settings: Alphabetical | By Function

Details[edit | edit source]

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.

e.g.

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

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

See also[edit | edit source]

External link[edit | edit source]


Robot policy Files: robots.txt
Attributes: nofollownoindex
Configuration settings: $wgArticleRobotPolicies$wgDefaultRobotPolicy$wgExemptFromUserRobotsControl$wgNamespaceRobotPolicies