auth.php 中的元机器人包含在 login.php 中
meta-robots in auth.php which is included in login.php
如果我把
<meta name="robots" content="noindex,nofollow" />
in auth.php
并在 login.php
页面中包含 auth.php
,login.php
页面将不会出现在 Google 上或仅 auth.php
获胜没出现?
搜索引擎无法深入了解您的 PHP 文件。唯一重要的是为 URL.
生成哪个 HTML
每个 HTML 文档有
- 你的
meta
-robots
元素
- 在
head
元素中¹
表示noindex
和nofollow
应该申请。但请注意,这可能会被 HTTP header X-Robots-Tag
and/or 被同一文档中的其他 meta
-robots
元素覆盖。
¹ 如果 meta
-robots
元素不在 head
元素中,它是无效的,它可能无法工作。
如果我把
<meta name="robots" content="noindex,nofollow" />
in auth.php
并在 login.php
页面中包含 auth.php
,login.php
页面将不会出现在 Google 上或仅 auth.php
获胜没出现?
搜索引擎无法深入了解您的 PHP 文件。唯一重要的是为 URL.
生成哪个 HTML每个 HTML 文档有
- 你的
meta
-robots
元素 - 在
head
元素中¹
表示noindex
和nofollow
应该申请。但请注意,这可能会被 HTTP header X-Robots-Tag
and/or 被同一文档中的其他 meta
-robots
元素覆盖。
¹ 如果 meta
-robots
元素不在 head
元素中,它是无效的,它可能无法工作。