
{"id":474,"date":"2017-04-19T15:50:27","date_gmt":"2017-04-19T08:50:27","guid":{"rendered":"https:\/\/blog.travelpayouts.com\/en\/?p=474"},"modified":"2021-10-02T20:51:48","modified_gmt":"2021-10-02T17:51:48","slug":"from-http-to-https","status":"publish","type":"post","link":"https:\/\/www.travelpayouts.com\/blog\/from-http-to-https\/","title":{"rendered":"How to Migrate Your Site From HTTP to HTTPS"},"content":{"rendered":"<h2>1. Preparing to Migrate<\/h2>\n<ol>\n<li>Changing internal links to relative links.<br \/>\nAt the very beginning of preparation it is necessary to replace all the internal links (including URLs in the rel=canonical link tag) with relative links, regardless of protocol, for example, \/\/site.com\/about. This means that the link will lead to a page on the site with the same protocol.<\/li>\n<li>Checking the availability of media content and changing URLs.<br \/>\nThe second step of preparation is to make sure that all media content (images, video, etc.) can be accessed via https. If there are images on your site, then as you did above, change them to relative links. For example, \/\/site.com\/images\/image1.jpg.<\/li>\n<li>Checking the presence of third-party services and changing URLs.<br \/>\nThese are external services (Google Analytics, etc), external scripts and libraries. Typically, all popular services support HTTPS. So again replace the URLs with relative ones.<\/li>\n<\/ol>\n<h2>2. Installing SSL Certificate and Checking the Availability of the Site via Both Addresses \u2014 HTTP:\/\/ And HTTPS:\/\/<\/h2>\n<h2>3. Necessary Settings<\/h2>\n<ol>\n<li>The Host directive in the robots.txt file.<br \/>\nIn the robots.txt file insert the Host directive: https:\/\/site.com. By so doing, you\u2019re telling search engines that the site at https:\/\/ is now the main mirror (optional, but e.g. Yandex requires that).<\/li>\n<li>Add the new site https:\/\/site.com in Google webmasters, transfer sitemap and other settings from the old webmasters to these new webmasters.<\/li>\n<li>Set up a 301 redirect for all pages from http:\/\/ to https:\/\/.<\/li>\n<\/ol>\n<h2>4. Error Control and Correction<\/h2>\n<p>Carefully check the accessibility of the site, images, scripts, links and redirects. Try and correct identified problems as soon as possible.<\/p>\n<h2>Important News<\/h2>\n<p>By the way, our White Label supports https out of the box, you don\u2019t need do anything about it. The certificate would be added to your White Label subdomain within 48 hours after you create it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTTPS is an extension of the HTTP protocol which enhances the security of a site. In 2017, Google Chrome, for example, started labeling some non-HTTPS sites &#8216;Not Secure&#8217;. Our SEO expert Tatyana Zuikova has laid down step-by-step guidelines on how to migrate your site from http to https.<\/p>\n","protected":false},"author":3,"featured_media":7336,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_eb_attr":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-474","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-advices"],"acf":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.travelpayouts.com\/blog\/wp-json\/wp\/v2\/posts\/474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.travelpayouts.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.travelpayouts.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.travelpayouts.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.travelpayouts.com\/blog\/wp-json\/wp\/v2\/comments?post=474"}],"version-history":[{"count":2,"href":"https:\/\/www.travelpayouts.com\/blog\/wp-json\/wp\/v2\/posts\/474\/revisions"}],"predecessor-version":[{"id":7197,"href":"https:\/\/www.travelpayouts.com\/blog\/wp-json\/wp\/v2\/posts\/474\/revisions\/7197"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.travelpayouts.com\/blog\/wp-json\/wp\/v2\/media\/7336"}],"wp:attachment":[{"href":"https:\/\/www.travelpayouts.com\/blog\/wp-json\/wp\/v2\/media?parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.travelpayouts.com\/blog\/wp-json\/wp\/v2\/categories?post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.travelpayouts.com\/blog\/wp-json\/wp\/v2\/tags?post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}