Manual:$wgExemptFromUserRobotsControl

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil • ‎русский
Robot policies: $wgExemptFromUserRobotsControl
An array of namespace keys in which the __INDEX__/__NOINDEX__ magic words will not function.
Introduced in version: 1.14.0
Removed in version: still in use
Allowed values: array of integers
Default value: $wgContentNamespaces

Other settings: Alphabetical | By Function

Details[edit | edit source]

An array of namespace keys in which the __INDEX__/__NOINDEX__ magic words will not function, so users can't decide whether pages in that namespace are indexed by search engines. If set to null, default to $wgContentNamespaces.

Example:

 $wgExemptFromUserRobotsControl = array( NS_MAIN, NS_TALK, NS_PROJECT );

Or, to switch it off entirely:

 $wgExemptFromUserRobotsControl = array();


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