301重定向和SEO

发布于 2024-07-30 05:23:03 字数 135 浏览 5 评论 0原文

我正在使用我的网站名称“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

苍暮颜 2024-08-06 05:23:03

在这种情况下,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.

翻身的咸鱼 2024-08-06 05:23:03

在这种情况下,HTTP 301 状态代码根本没有任何意义,因为您正在根据客户端设置和首选项执行重定向。
爬虫如何知道哪个是正确的环境?

考虑以下场景,

client A connects to /signup with preferences X 
=> 301 to /en/signup
client B connects to /signup with preferences Y 
=> 301 to /it/signup
client C connects to /signup with preferences X
=> 301 to /en/signup

哪个会是赢家? 没有人。
仅当 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

client A connects to /signup with preferences X 
=> 301 to /en/signup
client B connects to /signup with preferences Y 
=> 301 to /it/signup
client C connects to /signup with preferences X
=> 301 to /en/signup

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.

蝶舞 2024-08-06 05:23:03

301 状态代码 表示 URI 中给出的Location 标头字段应该用于将来引用所请求的资源:

已为所请求的资源分配了一个新的永久 URI,并且将来对此资源的任何引用都应使用返回的 URI 之一。

因此,请求的 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:

The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs.

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).

两人的回忆 2024-08-06 05:23:03

如果您想对内页进行排名,则需要通过页内和页外正确优化您的网站。 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文