我一直在尝试在我的网页上实现开放图形协议,并通过Facebook调试器不断收到错误 - 起初我得到了
无法遵循重定向路径 - 检测到循环重定向路径
并且研究表明可以通过制作
来解决这个问题<meta property = "og:url" content="http://www.mandyevansartist.com/newsletterone/index.html" />
到
<meta property = "og:url" content="http://www.mandyevansartist.com/newsletterone/index.html/" />
(在末尾添加反斜杠)
但是这会产生更多的错误,并且依赖于我将反斜杠放在地址的末尾,当我将其插入调试器时 - 根本不会刮掉任何信息 - 此时我正在获取
'网址返回了错误的HTTP响应代码'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property = "og:title" content="Noahs Ark|Mandy Evans Artist|Newsletter One" />
<meta property = "og:description" content="Noahs Ark is the limited edition print showcased by unique artist Mandy Evans in this first website newsletter" />
<meta property = "og:image" content="http://www.mandyevansartist.com/newsletterone/images/sendinglove1.jpg" />
<meta property = "og:url" content="http://www.mandyevansartist.com/newsletterone/index.html/" />
<meta property = "og:type" content="website"/>
有人可以指出我所缺少的东西
答案 0 :(得分:1)
您的服务器似乎正在返回301代码。你可以看到以下内容:
curl http://www.mandyevansartist.com/newsletterone/index.html
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301
Moved Permanently</title> </head>
<body> <h1>Moved Permanently</h1> <p>The document has moved <a href="http://www.mandyevansartist.com/newsetterone/index.html">here</a>.</p> </body></html>
请注意,您从...newsletterone...
重定向到...newsetterone...
。但是,og:url
再次指向newsletterone
,这会导致抓取工具进入循环。
这是您需要修复的部分。