With HTTPS, the browser and server first set up a TLS connection, and only then send ordinary HTTP through it. While setting it up, the server proves who it is with a certificate, issued by a certificate authority for that exact domain. Then everything sent in either direction is encrypted. HTTPS addresses use port 443 by default, where plain HTTP uses port 80.
What HTTPS protects, and what it doesn't
HTTPS protects three things:
- Privacy. Anyone between the visitor and the server, such as others on a café's Wi-Fi or the internet provider, can't read the pages, form data, cookies or passwords. They can still see which domain you're visiting.
- Integrity. Nobody along the way can change what's sent, for example by injecting ads or scripts into your pages.
- Identity. The visitor knows they're connected to the server that holds a valid certificate for that domain.
It doesn't make a site safe. A hacked site serves its malware over HTTPS just as well, and a phishing site can get a valid certificate for its own lookalike domain. HTTPS secures the connection, not the content.
Why every site needs HTTPS now
As of 2026-10-22, 90.3% of websites use HTTPS by default. W3Techs Browsers now treat plain HTTP as the exception:
- Chrome has labeled every HTTP page "Not secure" since Chrome 68 in July 2018.
- In October 2025, Google announced that Chrome 154 would turn on "Always Use Secure Connections" for public sites by default: Chrome then asks visitors for permission before their first visit to a public site without HTTPS. Google Security Blog
- HTTP/2 in browsers and HTTP/3 both need HTTPS.
Certificates can cost nothing: Let's Encrypt, a certificate authority run for the public's benefit, issues them free and automatically.
How Google treats HTTPS
As a ranking factor, it's small. Google started using HTTPS as a very lightweight ranking signal in 2014. Its current page experience guide lists a secure connection as part of a good page experience, but says that beyond Core Web Vitals, other page experience aspects don't directly help a website rank higher in search results. They can make a site more satisfying to use, which its ranking systems look to reward. Google Search Central Switch for your visitors, not for a ranking boost.
For canonical URLs, it matters. When the same page exists on HTTP and HTTPS, Google prefers the HTTPS version as canonical, unless something contradicts it:
- the HTTPS page has an invalid certificate,
- it loads insecure files other than images,
- it redirects to or through an HTTP page, or
- its canonical tag points to the HTTP version.
Bad certificates and HTTPS-to-HTTP redirects make Google prefer HTTP very strongly. Google Search Central
How to move a site from HTTP to HTTPS
Google treats a switch from HTTP to HTTPS as a site move with URL changes. Expect rankings to wobble while Google recrawls; for a medium-sized site, Google says it can take a few weeks or more for the new URLs to replace the old ones.
- Get a certificate for every hostname you serve, including both
wwwand the bare domain. A certificate for the wrong host variant is one of the mistakes Google lists. Make renewal automatic: the maximum certificate lifetime is shrinking in steps, from 398 days before March 2026 to 47 days by March 2029. - Fix mixed content. Change every image, script, stylesheet and font address to
https://. Browsers upgrade insecure images, audio and video, but block insecure scripts and other files, which can break the page. - Redirect every HTTP URL to its HTTPS twin with a permanent
301or308, in one hop, not via the home page. See redirects. Keep these redirects for at least a year. - Update your own references: canonical tags, internal links, your sitemap and hreflang tags should all use HTTPS URLs.
- Check robots.txt and noindex. Make sure the HTTPS site doesn't block crawling or carry a leftover noindex.
- Verify the HTTPS version in Google Search Console. A domain property covers both. You don't need the Change of Address tool for an HTTP-to-HTTPS move.
Lock it in with HSTS
Once everything works on HTTPS, add the Strict-Transport-Security header:
Strict-Transport-Security: max-age=31536000; includeSubDomains
It tells browsers to use HTTPS for your domain for the next year (31,536,000 seconds), even if someone types or clicks an http:// link. Browsers also stop letting visitors click past certificate errors on your site. That's the point, and also the risk: if a certificate lapses, visitors can't get in. Start with a short max-age, such as a day, and raise it once you're sure every subdomain has working HTTPS.
The preload option goes further and gets your domain built into browsers. It requires a max-age of at least a year and includeSubDomains. MDN