This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 12 months ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
301,正如您提到的,意味着“永久重定向”,
当页面内容已移动到另一个位置时应该使用它。这告诉链接到该页面的人,他们应该链接新页面,理论上不会有什么区别。主要搜索引擎也明白这一点。
所以,从 SEO 的角度来看,301 是更好的做法,因为搜索引擎可以找到“新页面”,但如果你没有“新页面”,将它们重定向到主页是不好的形式(IMO )。搜索引擎可能决定永远不会抓取曾经有 301 的页面,如果该页面再次出现,情况会更糟。
我认为更好的结果是有效地离开页面,但声明他们正在寻找的产品当前不可用。
301, as you mention means "Permanent Redirect"
It should be used when the content of the page has been moved to another location. This tells people who link to that page, that they should be linking the new page instead, and theoretically there would be no difference. Major search engines understand this as well.
So, from an SEO perspective, 301 is a better thing to do, because the search engines can find the "new page" But if you don't have a "new page", redirecting them to the home page is bad form (IMO). Search engines could decide never to scrape a page that once had a 301, and you would then be worse off if the page ever comes back.
I think a better result would be to effectively leave the page, but to state that the product they are looking for is not currently available.
301会将索引转移到主页,这很好。
最好将这些缺失的页面 301 到网站上最相关的页面,而不仅仅是主页。
例如,如果它是不再受支持的产品,请重定向到该产品类别页面或类似产品。
The 301 will transfer the index to the home page, which is good.
It's better to 301 those missing pages to the most relevant page on the website, and not just the home page.
e.g. if it's a product that is no longer supported, redirect to that products category page or a similar product.
Google 已确认 301 重定向和 302 重定向都不会影响您的 PageRank 或其他 SEO 信号。也就是说,当您需要临时转移流量时,最好只使用 302 重定向;而当您想要永久转移流量时,最好使用 301 重定向。
Google has confirmed that neither 301 redirects nor 302 redirects should impact your PageRank or other SEO signals. That said, it's good form to only use 302 redirects when you need to temporarily divert traffic and 301 redirects when you want to divert traffic permanently.