SEO:TYPO3 不呈现 <meta name="robots" content="index,follow">
SEO: TYPO3 doesen't render <meta name="robots" content="index,follow">
注意到 TYPO3 仅呈现以下标签组合(取决于设置):
<meta name = "robots" content = "noindex, nofollow">
<meta name = "robots" content = "noindex, follow">
<meta name = "robots" content = "index, nofollow">
它从不呈现这个:
<meta name="robots" content="index,follow">
它什么也不渲染。
这不是错误,因为 TYPO3 是这样创建标签的:
if ($noIndex === 'noindex' || $noFollow === 'nofollow') {
$manager = $metaTagManagerRegistry->getManagerForProperty('robots');
$manager->addProperty('robots', implode(',', [$noIndex, $noFollow]));
}
当我有索引和关注时,我需要这个标签吗?
因为搜索引擎的工作是索引所有可用文档并跟踪所有链接以获取所有文档,这是默认行为。
只有当你想要另一种行为时才需要声明它。
注意到 TYPO3 仅呈现以下标签组合(取决于设置):
<meta name = "robots" content = "noindex, nofollow">
<meta name = "robots" content = "noindex, follow">
<meta name = "robots" content = "index, nofollow">
它从不呈现这个:
<meta name="robots" content="index,follow">
它什么也不渲染。
这不是错误,因为 TYPO3 是这样创建标签的:
if ($noIndex === 'noindex' || $noFollow === 'nofollow') {
$manager = $metaTagManagerRegistry->getManagerForProperty('robots');
$manager->addProperty('robots', implode(',', [$noIndex, $noFollow]));
}
当我有索引和关注时,我需要这个标签吗?
因为搜索引擎的工作是索引所有可用文档并跟踪所有链接以获取所有文档,这是默认行为。
只有当你想要另一种行为时才需要声明它。