What is HTTPS?
HTTPS is the secure version of the web address protocol, the https:// at the start of a site's address.
It encrypts everything that passes between a visitor's browser and your website, so a form, a password or a card number cannot be read or changed on the way. It needs an SSL certificate installed on your hosting.
Browsers mark any page without it as Not secure, and Google has used HTTPS as a small ranking signal since 2014. A basic certificate is free from most hosts today, so a site without one is usually a setup that nobody finished rather than a cost anybody saved.
HTTPS is HTTP over TLS. The server presents a certificate for the hostname, signed by a certificate authority the browser trusts, and the two sides agree session keys before any HTTP is exchanged. The certificate must cover every hostname you serve, so www and the bare domain both need to be on it. Let's Encrypt certificates last a few months at most and renew automatically through ACME, which most hosts run for you.
Getting the padlock is the easy half. Every http:// address should answer with a single 301 to its https:// twin, canonicals and the XML sitemap should list only https URLs, and no page should load an image, script or font over plain http, which browsers block or flag as mixed content. Once all of that holds, an HSTS header tells browsers to skip http on future visits.
Strict-Transport-Security: max-age=31536000; includeSubDomains