不同案例的链接之间的差异 [英] Difference between links with different case

查看:200
本文介绍了不同案例的链接之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google如何查看全部大写的链接?

How does Google view links with all uppercase?

这与Google相同:

Is this the same for Google:

example.net/LogIn.html

example.net/LOGIN.html

example.net/login.html

我需要在链接上重新设计一个大写的旧网站,但我不想失去谷歌排名。

I need to redesign an old site with uppercase on links, but I don't want to lose Google rank.

推荐答案

HTTP URL路径 区分大小写

HTTP URL paths are case-sensitive.

实例:以下两个网址仅在 O o 并且它们会导致不同的页面:

Live example: The following two URLs only differ in O vs. o and they lead to different pages:

  • https://en.wikipedia.org/wiki/Stack_Overflow
  • https://en.wikipedia.org/wiki/Stack_overflow

所以第一个为每个符合要求的消费者的消费应该是 /LogIn.html /LOGIN.html /login.html 可能导致不同的资源。

So the first assumption of every conforming consumer should be that /LogIn.html, /LOGIN.html, and /login.html could lead to different resources.

消费者可能会使用各种信号来判断是否真的如此,或者服务器是否只是接受任何情况(例如,通过检测重复内容)。但是,如果您有这样的服务器,您可以理想情况下使用301重定向指向规范变体,或者如果不可能规范链接类型(您可能还需要除了重定向之外还要使用这个。)

Consumers might use various signals to decide if that’s really the case or if the server simply accepts any case (e.g., by detecting duplicate content). But if you have such a server, you would ideally use 301 redirects to point to the canonical variant, or, if that’s not possible, the canonical link type (you might also want to use this one in addition to the redirect).

这篇关于不同案例的链接之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆