2017-04-26 2 views
0

私は、すべてのURLフィールドに同じドメインを提供してきたエラーListItem Schema [schema.org/ItemList]エラー:「URLに指定されたすべての値に同じドメインが必要です。」

All values provided for url must have the same domain.

を取得https://search.google.com/structured-data/testing-tool/u/0/ にこのListItemのスキーマ検証で問題に直面しています。

{ 
    "@context": "http://schema.org", 
    "@type": "ItemList", 
    "name": "Tech News", 
    "url": "http://m.gadgetsnow.com/tech-news", 
    "itemListElement": [ 
     { 
      "@type": "ListItem", 
      "position": "1", 
      "url": "http://m.gadgetsnow.com/tech-news/are-tvs-going-out-of-fashion/articleshow/58375579.cms", 
      "name": "Are TVs going out of fashion?", 
      "image": { 
       "@type": "ImageObject", 
       "contentUrl": "http://m.gadgetsnow.com/photo/58375579.cms", 
       "width": "360", 
       "height": "270", 
       "url": "http://m.gadgetsnow.com/photo/58375579.cms" 
      } 
     }, 
     { 
      "@type": "ListItem", 
      "position": "2", 
      "url": "http://m.gadgetsnow.com/tech-news/reliance-jio-discounts-are-not-going-anywhere-for-now-heres-why/articleshow/58374335.cms", 
      "name": "Reliance Jio discounts are not going anywhere for now, here's why", 
      "image": { 
       "@type": "ImageObject", 
       "contentUrl": "http://m.gadgetsnow.com/photo/58374335.cms", 
       "width": "360", 
       "height": "270", 
       "url": "http://m.gadgetsnow.com/photo/58374335.cms" 
      } 
     } 
    ] 
} 
+0

[多分同じバグ(http://stackoverflow.com/a/40400319/1591669)。 – unor

答えて

1

ItemListの正しいバージョンをお試しください。 SeparatelyおよびCombinedは、とマークアップされています(here)。

  • If your items are on the same page, please use the version with items inside, the Combined one.
  • Otherwise, if you point to different pages inside and your items are not on one page, please DON’T put item element with type and other description inside, the Separately marked up one.

その他の参照:

+0

バリデータにエラーがあります。マークアップ[ここ](https://developers.google.com/search/docs/guides/mark-up-listings#how-to-mark-up-host-specific-lists)もSDTTでエラーを投げています –

関連する問題