Submit a request
7 minutes to read

A Guide to Migrating to HTTPS

Despite the obvious advantages of HTTPS — ranging from extra website protection to possible improvements to a website’s search results ranking — not everyone is quick to upgrade to the improved protocol. Because search engines view the HTTP and HTTPS versions of the same domain as different websites altogether, many webmasters are afraid that mirror merging will lead to traffic losses. This means spending extra time figuring out the best way to respond to user queries.

Why move your website to HTTPS?

It’s been a few years since Google started actively promoting the secure HTTPS connection. Having an SSL certificate has been considered an important visibility factor on Google as far back as 2014. Starting from 2017, all websites powered by the older HTTP technology have been marked as “not secure” by Google Chrome.

For comparison, secure websites are also marked with a special icon next to the address bar, which usually looks like a small lock.

The design of the icon may change depending on your browser and browser version, but you can’t really miss it

 

A similar system is now in place on all popular web browsers.

The statistics for www.w3schools.com
The statistics for www.w3schools.com (https://www.w3schools.com/browsers/default.asp)

The statistics do indeed show that the share of HTTPS-enabled websites is growing rapidly. Thus, these measures should motivate all website owners to migrate their websites from HTTP to HTTPS.

Google.ru search statistics based on data from moz.com
Google.ru search statistics based on data from moz.com

Migrating to HTTPS without losing visibility

Search engines now take various measures to uphold security, which means it only takes from a few days to a week before an HTTPS version of a website replaces the HTTP version in search results. 

If you wish to minimize possible risks, choose the least traffic-heavy day and month to implement the HTTPS protocol. Entrepreneurs usually already know when the demand for their offer is at its lowest, whereas everybody else can just analyze their Google Analytics data from the past few years.

Step 1. Choosing and setting up an SSL certificate

HTTPS uses the cryptographic SSL/TLS protocol for secure data transfer. This protocol needs the certificate to check whether the encryption key belongs to the site owner. You can turn to a certification authority to receive an SSL certificate that guarantees the validity of your digital signature.

The world’s largest certification authorities are Sectigo (previously known as Comodo) and DigiCert. Both let you buy an SSL certificate that will last for a given period of time (their service plans usually extend to 1 or 2 years). You can also usually receive or buy an SSL certificate from your website hosting provider.

If you wish to receive an SSL certificate for free, then you can also use Let's Encrypt and FreeSSL. Their certificates come with certain restrictions, but their feature suite should be enough for most common websites.

So, how do you know which option works best for you? There are three SSL protocol types to choose from:

  • Domain Validation (DV SSL) validates your domain name.
  • Organization Validation (OV SSL) validates your domain name and organization.
  • Extended Validation (EV SSL) is the most secure option.

A website’s certificate type usually says a lot about the company and their data security.

Click the secure connection icon in your browser’s address bar to view certificate information
Click the secure connection icon in your browser’s address bar to view certificate information

SSL certificates can also be categorized based on their properties:

  • Single Certificate only applies to a single domain, specified during purchase.
  • Wildcard certificates secure the domain and all its subdomains but are also noticeably more expensive.
  • Unified Communications/SAN are a good choice for companies that manage multiple domains.
  • If your domain uses Cyrillic, you should get IDN support.

Free SSL certificates from the Let’s Encrypt certification authority should fit the needs of most clients. They also boast auto-renewal, which means you only have to set them up once. To set up a certificate, you will need access to your hosting service’s management dashboard and console, as well as the knowledge of a couple of nginx commands.

Please note that you won’t be able to set up auto-renewal on a virtual hosting service on your own, as this requires root access. However, some hosting providers can offer you such a service at your request.

Step 2. Getting your website ready for migration

  1. Change your internal absolute links to relative links. This includes text links as well as hyperlinks to images, videos, and header files. You should also set up your remarketing code and various scripts to utilize relative links with the domain name and no HTTP (such as //site.com/script.js).

  2. Generate a new sitemap.xml file containing HTTPS addresses.

  3. Edit the robots.txt file by including the correct link that leads to sitemap.xml with the correct HTTPS address.

  4. Don’t forget to change the internal links in the tags rel=canonical, rel=alternate, and others if you’re using them on your website.

First you should migrate to HTTPS on a test domain and set it up there. Take your time to iron things out. If that’s something you’re unable to do, then skip to Step 3.

Step 3. Code 301 redirects

  1. Set up Code 301 redirects from HTTP to HTTPS. The pages of your old website should lead to similar pages on your new website. If you changed your website’s internal layout after migration, then you can set up redirects to the new pages that serve similar functions to those of the old pages, and then set up another redirect from the new page to the correct address.

  2. The robots.txt file and your website’s XML map should be accessible as both HTTP and HTTPS destinations.
    The content of both versions should match so that the bot can parse both addresses when checking for mirrors.
    You should use the address of the new HTTPS mirror when specifying a link to the sitemap.xml file in both robots.txt files.

Not all management systems allow you to use multiple copies of the robots.txt file. If this is the case for you, then you can use a code 301 redirect that leads to the HTTPS version of the robots.txt file.

  1. Check your server responses and make sure that all mirrors in your group redirect the user to your desired main mirror. If you’re using sub-domains, then make sure to set up redirects for them as well.

    This also applies to versions of the same link that start with WWW. Make sure to set up mirror migration that follows the format of HTTP://www.subdomain.domain.comHTTPS://subdomain.domain.com if your SSL certificate only applies to first-level domains. Otherwise, connecting to a subdomain mirror that starts with the WWW will result in a security error.

If you can’t set up redirects manually, then add a rel=″canonical″ link to each page of the old website so that it leads to a similar version of the page hosted on the HTTPS website.

Step 4. HTTPS and search engines

Make sure the settings let you access analytics data for your new HTTPS mirror. If you set up a separate mirror in Google Search Console instead of a domain resource, you will have to add and validate the HTTPS website manually.

Now just wait for the mirrors to merge, which shouldn’t take long. It usually takes one or two weeks for the HTTPS version of a website to replace the old version in search results ranking. However, the old version might still show up in search results for some time, as traffic data in the Search Console will show.

Migrating your website to HTTPS: the aftermath

Your work isn’t done once you send that migration request. Keep in mind that no search engine guarantees results, so keep a close eye on your website’s ranking and indexing after migration.

You can use tools that help you analyze your website’s internal layout (e.g., crawlers such as the free-to-use Xenu Link Sleuth). This will help you find internal absolute links you might’ve missed and weed out redirect chains. After you fix those issues, bots will have an easier time processing your website, which means quicker re-indexing. This also sends a signal that tells search engines that you keep your website up to date.

Also make sure to update your website address on Google Maps and in catalogs, which will produce first-quality links to your HTTPS mirror.

Are you looking for efficient SEO?

Contact us for professional service and support
Interested in our services? Apply here
Apply
Нажмите и держите для максимального увеличения