301重定向和SEO
我正在使用我的网站名称“sign_up”上的链接。 当您单击“签名”时,它会检查您选择的语言和货币,并使用 301 重定向将您永久重定向到正确的页面。
这对 SEO 不利吗? 请记住,这将保持这种方式。 我最终不会摆脱它吗?
I am using a link on my site name "sign_up". When you click on sign it, it checks what language you have selected and what curreny, and permanently redirects you to the correct page using a 301 redirect.
Is this bad for SEO? Keep in mind, this is the way it will remain. I'm not eventually going to get rid of it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在这种情况下,301 没有任何意义。 Google 将看到 301,表明该页面已永久移动。 这意味着它曾经在一个位置的某个点,现在又在另一个位置。
然而,谁在乎呢? 您是否想对注册按钮后面的页面进行排名? 注册链接对于您的 SEO 策略来说是否如此重要以至于值得强调? 可能不会。
A 301 in this case makes no sense. Google will see a 301 as an indication that the page has moved permanently. Meaning that it was at one point in one location and now its in another.
However, who cares? Are you trying to rank the page that sits behind the signup button? Is having a signup link point to that so important for your SEO strategy that its worth stressing about? probably not.
在这种情况下,HTTP 301 状态代码根本没有任何意义,因为您正在根据客户端设置和首选项执行重定向。
爬虫如何知道哪个是正确的环境?
考虑以下场景,
哪个会是赢家? 没有人。
仅当 URI 唯一且永久地重定向到其他位置时,301 才有意义。
此外,尝试对注册页面进行此类优化恕我直言似乎有点疯狂。 许多 SEO 用于通过 nofollow 属性排除注册页面和类似页面。
The HTTP 301 status code makes no sense at all in this case because you are performing a redirection based on client settings and preferences.
How would the crawler know which is the right environment?
Take the following screnario
Which would be the winner? Nobody.
A 301 makes sense only when an URI uniquely and permanently redirects to an other location.
Additionally, trying such kind of optimization for a signup page IMHO seems to be a little insane. Many SEOs are used to exclude the signup page and similar pages via nofollow attribute.
301 状态代码 表示 URI 中给出的
Location
标头字段应该用于将来引用所请求的资源:因此,请求的 URI 不再是该资源的“主要”URI。
但在您的情况下 302 状态代码 或 < href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.8" rel="nofollow noreferrer">307 状态代码 会更好。 或者您不进行重定向,而是立即发送正确的内容以及
Content-Location
标头字段 与发送资源的实际 URI(请参阅 常见 HTTP 实现问题)。The 301 status code means that the URI given in the
Location
header field should be used to reference the requested resource in the future:So the requested URI is no longer the “primary” URI for that resource.
But in your case the 302 status code or 307 status code would be better. Or you don’t make a redirect but send the right contents right away together with a
Content-Location
header field with the actual URI of the sent resource (see Common HTTP Implementation Problems).如果您想对内页进行排名,则需要通过页内和页外正确优化您的网站。 301重定向不会损害SEO。
If you want to rank inner page than you need to optimise your site properly by on page and off page. 301 redirect doesn't hurt seo.