Manual:$wgDefaultRobotPolicy/ru
Appearance
| Политика роботов: $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' |
| Другие настройки: По алфавиту | По функциональности | |
Подробности
This configuration parameter allows specifying the default robot policy for all pages on the wiki. The default is to encourage link indexing and following. This can be overridden on a per-namespace and/or per-article basis.
The following example would forbid the indexing and following links on all pages outside the main namespace:
$wgDefaultRobotPolicy = 'noindex,nofollow';
$wgNamespaceRobotPolicies = [
NS_MAIN => 'index,follow'
];
Смотрите также
Ссылки
- About the Robots <META> tag (www.robotstxt.org)