Jump to content

Manual:$wgDefaultRobotPolicy/pt

From mediawiki.org
This page is a translated version of the page Manual:$wgDefaultRobotPolicy and the translation is 8% complete.
Robot policies: $wgDefaultRobotPolicy
Allows specifying the default robot policy for all pages on the wiki
Introduzida na versão:1.12.0 (r30602)
Removida na versão:ainda em uso
Valores permitidos:(text string appropriate for a "robots" meta tag)
Valor por omissão:'index,follow'

Details

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 = [
     NS_MAIN => 'index,follow'
];

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

Ver também