gpt4 book ai didi

redirect - 主页重定向会影响搜索引擎抓取吗?

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:35:49 30 4
gpt4 key购买 nike

有一个新域,比如说 va.in。

正在为子域 a.va.in 准备内容

想法是 va.in/index 可以包含指向 future 某个时间段的指针(例如 b.va.in、c.va.in 等)。截至目前,拥有这样一个页面没有意义,因为只有一个部分,即 a.va.in

  1. 如果我决定暂时将 va.in 重定向到 a.va.in,搜索引擎会遵循重定向并为网站编制索引吗?

  2. DNS 是进行重定向的最佳位置吗?

最佳答案

使用“301 永久移动”搜索引擎只会索引子域 a.va.in。如果没问题,您可以使用 Web 服务器的配置来执行此操作。

例如在 Apache 中:

<VirtualHost va.in www.va.in>
Redirect permanent / http://a.va.in/
</VirtualHost>

您不能真正使用 DNS 进行重定向,因为在 DNS 中您不能将 CNAME 分配给@。请参阅:Is Root domain CNAME to other domain allowed by DNS RFC?

有与您相关的问题:301 Redirect vs DNS change: Is it ever safe to kill a 301 redirect and update the DNS for a subdomain?

关于redirect - 主页重定向会影响搜索引擎抓取吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/689139/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com