HTTPS
What is HTTPS?
HTTPS (Hypertext Transfer Protocol Secure) is the encrypted version of HTTP, the protocol browsers use to load web pages. It uses TLS, often still called SSL, to encrypt traffic between the visitor and the server and to prove the site is who it says it is, via a certificate. Sites on HTTPS show https:// in the address bar.
A TLS certificate is issued by a certificate authority for a domain. Free, automatically renewed certificates from authorities such as Let’s Encrypt, and the certificates built into most hosts and CDNs, mean cost is no longer a reason to stay on HTTP.
Why HTTPS matters for SEO
Google announced HTTPS as a ranking signal in 2014 and has described it as a lightweight one. It is also part of Google’s page experience considerations. On its own it will not lift a weak page, but there is no good reason to give it up.
The bigger effect is on people. Chrome and other browsers label HTTP pages "Not secure", which puts visitors off, and many browser features, such as geolocation and service workers, only work over HTTPS. Without it, anything typed into a form can be read or altered in transit.
When both versions exist, Google prefers to index the HTTPS URL as the canonical, as long as it works properly. A half-done move, with HTTP pages still live or mixed content on HTTPS pages, leaves duplicate URLs and warnings.
How to move a site to HTTPS
- Get a certificate that covers every host you use (www and non-www, plus subdomains). Most hosts and CDNs can issue and renew one automatically.
- Redirect every HTTP URL to its HTTPS equivalent with a single server-side 301 redirect, page to page, not to the homepage.
- Update internal links, canonical tags, hreflang annotations and structured data to use https:// URLs.
- Fix mixed content: every image, script, stylesheet and iframe must load over HTTPS.
- Update the XML sitemap and the `Sitemap:` line in robots.txt. A robots.txt file must also be served on the HTTPS host.
- Verify a Domain property in Search Console (it covers both protocols) and watch the page indexing report as Google swaps the URLs.
- Once everything works, add an HSTS header so browsers always use HTTPS.
HTTPS example
# Send all HTTP traffic to HTTPS in one hop
server {
listen 80;
server_name example.com www.example.com;
return 301 https://www.example.com$request_uri;
}HTTPS FAQ
Is HTTPS a ranking factor?
Yes, but a lightweight one. Google has used HTTPS as a ranking signal since 2014. Its larger value is trust: browsers warn visitors about HTTP pages.
Will moving to HTTPS hurt my rankings?
A well-run move with page-to-page 301 redirects usually causes only short fluctuations while Google recrawls. Problems come from missing redirects, redirect loops and leftover HTTP links.
What is the difference between SSL and TLS?
TLS is the modern successor to SSL. Every current HTTPS site uses TLS; "SSL certificate" is just the name that stuck.
Related SEO terms
Mixed content is when an HTTPS page loads images, scripts or other files over insecure HTTP. Browsers block or upgrade much of it.
HSTS (Strict-Transport-Security)
HSTS is a response header that tells browsers to only connect to a site over HTTPS, so they never load it over insecure HTTP.
Security headers are HTTP response headers that tell browsers how to handle a site’s content safely, blocking common attacks.
A 301 redirect permanently sends visitors and search engines from one URL to another and tells Google the new URL should be indexed.
A redirect loop is when redirects send a URL back to itself, so the page never loads and browsers show a too-many-redirects error.
Technical SEO is making sure search engines can crawl, render and index your site, covering speed, redirects, canonicals, sitemaps and mobile.