iGB Affiliate 62 Apr/May | Page 15

TRAFFIC https://www.example.com/ on the same or other servers. So css?family=Open+Sans’; css?family=Open+Sans’; . https://www.example.com/image.jpg https://www.example.com/video123.flv This example assumes all content is moved to the HTTPS version. If this is not the case, only update the relevant URLs. If possible, create XML sitemaps for every subdomain or subsection of the website on both the HTTP and the HTTPS versions, and update the HTTPS versions accordingly. If the website is large, consider using XML sitemaps index files to group the different XML sitemaps for each subdomain or subsection. This will help at a later stage to track indexation numbers of both the HTTP and the HTTPS versions. hopeful that the search engines will better understand the content and increase the visibility of the website in organic search. Schema.org is the default and primary structured data repository at the moment time of writing. Luckily, the content of Schema.org is supported on both HTTP and HTTPS, so this can be used in the code base. Update any absolute URL references in the structured data used on the website, and all Schema.org references, to HTTPS. For example: { “@context”: “http://schema.org”, “@type”: “WebSite”, “name”: “Your WebSite Name”, “alternateName”: “An alternative name for your WebSite”, “url”: “http://www.your-site.com” } Becomes { “@context”: “https://schema.org”, HTTP headers “@type”: “WebSite”, HTTP headers can be extremely powerful to communicate SEO signals to search engines 9 while keeping the overhead in code base minimal. Often, the link annotations are stored in the PHP code 10 , or in the .htaccess files of Apache servers, etc. For example, for .htaccess, the following can be applied: “name”: “Your WebSite Name”, It is possible to utilise “//” for the URL in this example, but not for the context reference. For example, this works too: Header add Link ‘http://www. { example.com/ >; rel=”canonical”’ “@context”: “https://schema.org”, Resource Hints “@type”: “WebSite”, If the website is using Resource Hints 8 , such as dns-prefetch, preload, preconnect, prerender, prefetch, etc, then these also need to be updated. For example, Always make sure to check the HTTP headers of the website for any links, and when found, update them accordingly, for example: “name”: “Your WebSite Name”, ; } com” pr=”0.42”> rel=”alternate”; hreflang=”es” becomes Link: ; rel=”canonical” However, this is not valid according to the Google Structured Data Testing Tool 12 : ; rel=dns-prefetch { com” pr=”0.42”> or becomes “@context”: “//schema.org”, ; “@type”: “WebSite”, pr=”0.42”>. rel=”alternate”; hreflang=”es” “name”: “Your WebSite Name”, Double-check for resource hints in the HTTP headers, the HEAD of the HTML, and in the Javascript code. Link: ; rel=”canonical” “alternateName”: “An alternative name Link: ; rel=dns-prefetch for your WebSite”, or Link: ; rel=”alternate”; } CSS and Javascript hreflang=”es”. Most websites depend heavily on assets, such as CSS for styling and Javascript for interaction. What most SEOs tend to forget when moving content is that often these assets may import or load other assets, such as images and other CSS or Javascript files Link: ; rel=”canonical” Structured data Check for JSON-LD, Microdata, RDF or other possible structured data references in the code base, and when found, update the protocol of every URL referenced in the structured data to HTTPS. Search engines want data to be structured 11 and SEOs are often happy to provide this, RSS/Atom feeds 09 Link: ; rel=dns-prefetch 8 https://www.w3.org/TR/resource-hints/ 9 Footnot link https://webmasters.googleblog.com/2011/06/supporting-relcanonical-http-headers.html 10 http://php.net/manual/en/function.header.php 11 https://developers.google.com/search/docs/guides/intro-structured-data 12 https://search.google.com/structured-data/testing-tool “alternateName”: “An alternative name for your WebSite”, “url”: “https://www.example.com” } “alternateName”: “An alternative name for your WebSite”, “url”: “//www.example.com ” “url”: “//www.example.com” Another item that is often overlooked are the RSS and/or Atom feeds of a website. Although RSS/Atom usage has faded since the shutdown of Google Reader, these are iGB Affiliate Issue 62 APR/MAY 2017 11