craft-seomatic icon indicating copy to clipboard operation
craft-seomatic copied to clipboard

When outputting schema.org information, it should use https, rather than http

Open lukehmu opened this issue 6 years ago • 3 comments

e.g.

{  
   "@context":"http://schema.org",
   "@type":"WebPage",
   "author":{  
      "@id":"https://example.com#identity"
   },
   "copyrightHolder":{  
      "@id":"https://example.com#identity"
   },
   "copyrightYear":"2016-09-02T12:30:03+01:00",
   "creator":{  
      "@id":"https://example.com#creator"
   },
   "dateModified":"2018-11-26T16:09:06+00:00",
   "datePublished":"2016-09-02T12:30:03+01:00",
   "description":"Every day, 20 people die as a result of their drinking. But alcohol harm is not inevitable.",
   "headline":"Alcohol harms. Time for change.",
   "image":{  
      "@type":"ImageObject",
      "url":"https://image.com"
   },
   "inLanguage":"en-gb",
   "mainEntityOfPage":"https://example.com/",
   "name":"Alcohol harms. Time for change.",
   "potentialAction":{  
      "@type":"SearchAction",
      "query-input":"required name=search_term_string",
      "target":"https://example.com/search/results?q={search_term_string}"
   },
   "publisher":{  
      "@id":"https://example.com#creator"
   },
   "url":"https://example.com/"
}

lukehmu avatar Jan 31 '19 09:01 lukehmu

So the official stance from schema.org:

There is a general trend towards using 'https' more widely, and you can already write 'https://schema.org' in your structured data. Over time we will migrate the schema.org site itself towards using https: as the default version of the site and our preferred form in examples. However 'http://schema.org' -based URLs in structured data markup will remain widely understood for the forseeable future and there should be no urgency about migrating existing data. This is a lengthy way of saying that both 'https://schema.org' and 'http://schema.org' are fine.

(emphasis mine)

https://schema.org/docs/faq.html#19

khalwat avatar Feb 04 '19 04:02 khalwat

Circling back on this one as schema.org now uses HTTPS as default and all HTTP links are redirected to HTTP: Some SEO audit tools flag HTTP URLs as potentially unsecure (what makes limited sense, but they do it).

As all schema.org links are now HTTPS, wouldn't it now be the time to switch to the HTTPS versions of the links?

ghaydtner avatar Oct 12 '22 06:10 ghaydtner

I mean... I suppose :)

khalwat avatar Oct 13 '22 22:10 khalwat