域名和域名的重定向或主机标头万维网
如果您的网站地址是:
http://www.example.org
您应该设置一个永久重定向到 www 地址的 IIS 网站
http://example.org
,还是只是添加第二个 Url 作为主机标头?
如果在哪里添加主机标头会影响 SEO 吗?
If you web site address is:
http://www.example.org
should you set up an IIS web site for
http://example.org
with a permanent redirect to the www address or simply add the second Url as a host header?
If you where to add the host header would that affect SEO?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会将 www 子域设置为指向与无子域相同的位置。这样,www 就完全是可选的,不会对您的用户产生任何影响。
您的示例中的两个地址将被单独索引,即使它们指向完全相同的页面。冗余索引会对您造成伤害,因为搜索结果将分为两个有效结果。通过使用规范链接标签可以缓解所有这些问题。
type 属性是所有链接标签上的有效属性,但据我所知,目前搜索引擎不支持它。我把它放在那里,因为我认为它可能会在将来帮助搜索机器人在初步分析后理解页面时帮助建立索引。
I would set up the www subdomain to point to the same location as no subdomain. That way the www is entirely optional with no consequence to your users.
The two addresses in your example will be indexed separately even if they point to the exact same page. That redundant indexing will hurt you as search results will be split between two valid results. Mitigate all those problems by use of a canonical link tag.
The type attribute is a valid attribute on all link tags, but as far as I know it is not supported by search engines at this time. I throw it in there as I think it will likely assist indexing in the future when it comes to assisting a search bot make sense of the page after initial analysis.