如何向 Googlebot 提供照片库更新服务?
当网站上的照片库更新时如何设置重定向?
一些照片已被删除,因此 Googlebot 目前收到 404 错误。但那些老照片是无可替代的。同一主题中有一些新的、相似的照片,但不相同。
我应该将请求重定向到某个地方吗?例如,日志被 /images/some.jpg
的请求淹没,因此将其重定向到(哪里?)。
How to set up redirections when photo galleries on a site have been updated?
Some of the photos were removed, so the Googlebot gets 404 for now. But there are no substitute for those old photos. There are some new, similar photos in the same topic, but not the same.
Should I redirect the request somewhere? E.g. log gets flooded by requests to /images/some.jpg
, so redirect this to (where?).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议采用双管齐下的方法:
1) 更新您网站的 Google 索引
通过 Google 网站站长工具,并请求抓取您的网站。这应该会从索引中删除大部分已删除的图像,并减少访问您网站的 404 错误的数量。
从 Google 搜索结果中删除网页或网站
2) 更新您的 404 错误页面
如果您还没有自定义的 404 页面,请考虑创建一个,其中可以包含一条消息,通知用户链接已更改并将他们定向到您的主页和/或搜索页面(尝试将它们保留在您的网站中,而不是简单地关闭浏览器窗口。
Google 搜索自定义 404 页面文章
I would suggest a two-pronged approach:
1) Update Google's Index of Your Site
Claim your site via Google Webmaster Tools, and request a crawl of your site. This should remove most of the removed images from their index, and reduce the number of 404 Errors visitors to your site and now getting.
Remove a page or site from Google's search results
2) Update your 404 Error Page
If you do not already have a customised 404 page, think about creating one, which can then contain a message advising the user that the link has been changed and directing them to your home page and/or search page (trying to keep them in your site rather than simply closing the browser window.
Google Search for Custom 404 page articles
简单的答案:如果资源消失了(即:html 页面、图像文件),正确的响应是“HTTP 410 消失”(HTTP 404 也可以),
Google 会将此资源从其索引中踢出。
如果您将 HTTP 重定向到其他任何地方,对 SEO 没有任何好处。如果将它们重定向到其他地方,则不会给用户带来任何好处(自定义 HTTP 404 / 410 页面效果更好)
simple answer: if a ressource is gone (i.e.: an html page, an image file) the right response is "HTTP 410 Gone" (HTTP 404 is also ok)
google will kick this ressource out of its index.
there is no benefit for SEO if you do an HTTP redirect to anywhere else. there is no user experience benefit if you redirect them somewhere else (a custom HTTP 404 / 410 page has a better effect)