Twitter卡片验证器为什么会出现重定向循环错误?

3

我正在使用https://cards-dev.twitter.com/validatorhttp://parlaywith.me上。

当我包含这个标签(目前已包含):

<meta property="og:url"
       content="http://parlaywith.me">

我得到了这个错误:

ERROR: Fetching the page failed because it resulted in too many redirects. WARN: this card is redirected to http://parlaywith.me/

当我删除该标签时,我得到:

INFO: Page fetched successfully

如何保留og:url标签并避免错误?
1个回答

4
您可能需要在URL末尾添加斜杠进行指定:
http://parlaywith.me/

替代

http://parlaywith.me

此外,请注意,HTML5 要求使用link(而不是meta)作为值为URI的情况:
<link property="og:url"
    href="http://parlaywith.me/">

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接