How to migrate your site from http to https
April 19, 2017Comments (6)
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 ‘Not Secure’. Our SEO expert Tatyana Zuikova has laid down step-by-step guidelines on how to migrate your site from http to https.
Table of Contents
1. Preparing to migrate
- Changing internal links to relative links.
At 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.
- Checking the availability of media content and changing URLs.
The 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.
- Checking the presence of third-party services and changing URLs.
These are external services (Google Analytics, etc), external scripts and libraries. Typically, all popular services support HTTPS. So again replace the URLs with relative ones.
2. Installing SSL certificate and checking the availability of the site via both addresses — http:// and https://
3. Necessary settings
- The Host directive in the robots.txt file.
In the robots.txt file insert the Host directive: https://site.com. By so doing, you’re telling search engines that the site at https:// is now the main mirror (optional, but e.g. Yandex requires that).
- Add the new site https://site.com in Google webmasters, transfer sitemap and other settings from the old webmasters to these new webmasters.
- Set up a 301 redirect for all pages from http:// to https://.
4. Error control and correction
Carefully check the accessibility of the site, images, scripts, links and redirects. Try and correct identified problems as soon as possible.
By the way, our White Label supports https out of the box, you don’t need do anything about it. The certificate would be added to your White Label subdomain within 48 hours after you create it.