在301重定向之后,Facebook像计数复位 [英] Facebook like count resets after a 301 redirection

查看:106
本文介绍了在301重定向之后,Facebook像计数复位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上发布了一个错误类别的文章。我想要更改类别,而且由于类别名称是URL的一部分,所以我将301重定向添加到更新的URL。
那篇文章还有几个喜欢,但在301之后,它被重置为0喜欢,因为从Facebook到现在,这是一个没有喜欢的新网址。
如果我删除301比喜欢的计数再次更新。
有没有办法通知FB某个URL是301的结果?
我认为与FB评论相关的页面

I have an article on my site that has published in a wrong category. I wanted to change the category, and since the category name is part of the url, I than added a 301 redirection to the updated url. That article had also several likes, but after the 301, it was reset to 0 likes, since to Facebook this is now as a new url with no likes. If I remove the 301 than the likes count is updated again. Is there a way to notify FB that a certain url is a result of a 301 that has likes count? I assume it is relevant as well for pages with FB comments

推荐答案

您需要设置href或类似按钮的data-href属性到具有相同计数的原始网址,具体取决于您使用的按钮。 Facebook不会重新导向。

You would need to set the "href" or "data-href" property of the like button to the original url that had the like counts, depending on which like button you are using. Facebook will not follow redirects.

这篇关于在301重定向之后,Facebook像计数复位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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