什么可能导致Twitter卡验证器给出重定向循环错误?

时间:2015-09-21 07:35:57

标签: twitter meta-tags open-graph-protocol rdfa twitter-card

我在http://parlaywith.me上使用https://cards-dev.twitter.com/validator

当我包含此标记(当前包含)时:

<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 个答案:

答案 0 :(得分:3)

您可能必须使用尾部斜杠指定URL:

http://parlaywith.me/

而不是

http://parlaywith.me

另请注意,如果值为URI,HTML5 requires将使用link(而不是meta):

<link property="og:url"
    href="http://parlaywith.me/">