Manual:$wgDefaultRobotPolicy

From mediawiki.org
This page is a translated version of the page Manual:$wgDefaultRobotPolicy and the translation is 50% complete.
Robot policies: $wgDefaultRobotPolicy
Allows specifying the default robot policy for all pages on the wiki
Introducido en la versión:1.12.0 (r30602)
Eliminado en la versión:aún se usa
Valores permitidos:(text string appropriate for a "robots" meta tag)
Valor predeterminado:'index,follow'

Detalles

Allows specifying the default robot policy for all pages on the wiki. The default is to encourage indexing and following of links. Esto puede anular por espacio de nombres y/o por artículo.

p. ej.

$wgDefaultRobotPolicy = 'noindex,nofollow';
$wgNamespaceRobotPolicies = [
     NS_MAIN => 'index,follow'
];

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

Véase también

Enlace externo