更改产品网址 - 但我不想丢失或隐藏现有的点赞?
作为网站重组的一部分(本质上是与 SEO 相关的改进),我网站的一个产品网址都将发生变化。使用 ReWrite 规则,产品将与当前的相比发生变化: /[manufacturer]/products/[product_id].php 到 /[manufacturer]/[range]/[product_name].php
但我注意到在新页面上,以前对这些产品的喜欢没有显示。我已经使用图形协议来生成“点赞”按钮,因此我希望如果我将旧的 URL 保留在元标记中,它们将链接到旧的“点赞” - 不幸的是,这没有发生。
无论如何,有没有办法像他们现有的那样喜欢我的新产品网址?
As part of site restructuring (essentially SEO related improvements) one of my site's product urls are all going to change. Using ReWrite rules the products are changing from the current:
/[manufacturer]/products/[product_id].php to /[manufacturer]/[range]/[product_name].php
But I notice on the new pages that previous likes for these products are not showing. I have used the graph protocol to generate the like buttons, so I was hoping that if I kept the old URL in the meta tags that they would link up to the old likes - unfortunately this is not happening.
Is there anyway to like my new product urls to their existing likes??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以添加从旧产品 URL 到新产品 URL 的永久重定向,并显示旧的喜欢(src 到旧 URL)。
You can add permanent redirect from old product URL to new, and show old likes (src to old url).
这个问题由现在不活动的错误回答:
http://bugs.developers.facebook .net/show_bug.cgi?id=18198
本质上需要在新页面上的“like”按钮的 href 标签中添加旧网址:
this question is answered by this now inactive bug:
http://bugs.developers.facebook.net/show_bug.cgi?id=18198
Essentially need to add the old urls in the href tag of the like button on your new page: