【发布时间】:2016-11-16 11:58:57
【问题描述】:
我有一个最近切换到 HTTPS 的网站。为了将 HTTP 重定向到 HTTPS,我在 CloudFlare 中创建了一个页面规则:
http://www.domain.com/*
Always Use HTTPS
这可行,并且输入站点的 HTTP 版本会重定向到 HTTPS 版本。
但是,此更改使该网站失去了原始 HTTP 版本的 Facebook“赞”。
为了解决这个问题,我关注 Facebook's "moving URLs" instructions 并将 og:url 元标记添加到具有原始 HTTP 域的 HTTPS 站点以捕获原始喜欢:
<meta property="og:url" content="http://www.domain.com"/>
但是,在Facebook Sharing Debugger 上重新抓取网站时,Facebook 给我一个错误提示:
Could Not Follow Redirect Path
Using data from https://www.domain.com/ because there was an error following the redirect path.
Could Not Follow Redirect
URL requested a HTTP redirect, but it could not be followed.
我该如何解决这个问题?
【问题讨论】:
标签: facebook facebook-graph-api redirect https cloudflare