STATUS IS UPWEBSITE OPTIMIZATION WIKI
48Harden
Security and recovery / Harden

HTTPS and TLS Guide for Website Owners

A practical plan to use HTTPS everywhere, maintain certificates, remove insecure assets, and change TLS safely.

HTTPS and TLS Guide for Website Owners — VISUAL GUIDE
READ
8 minutes
SOURCES
6
REVALIDATE
2027-03-27
reviewed
Web security and platform operations reviewer
THE SHORT ANSWER

Start with the decision.

Use HTTPS on every public hostname, not only login and checkout pages. HTTPS is HTTP carried over Transport Layer Security, or TLS. TLS encrypts traffic in transit, helps protect it from modification, and lets a browser validate the named server. Install a certificate that covers each hostname at the public edge, redirect HTTP directly to the equivalent HTTPS URL, and update pages, assets, APIs, downloads, and embeds so none request HTTP.

Make the switch a controlled release. Inventory hostnames and dependencies; test redirects, certificate names and expiry, browser warnings, forms, and integrations; then automate renewal. Add HSTS only after every covered hostname works over HTTPS, because browsers remember the policy and will not offer a click-through for certificate errors. Keep a documented rollback for bad server rules or certificate deployment while retaining secure HTTPS service.

VISUAL GUIDE

See the work as a system.

Use this map to connect the article’s decisions before acting on individual tactics.

SIUHarden
01Inventory hostnames, dependencies, and ownership
02Deploy the certificate and current TLS versions
03Redirect HTTP once and make HTTPS canonical
04Find and fix mixed content at its source
01

Inventory hostnames, dependencies, and ownership

List every hostname that visitors or integrations use: apex, www, subdomains, APIs, asset hosts, portals, and regional names. For each, record where TLS terminates, who can change it, certificate coverage and expiry, renewal method, and dependencies that generate URLs. A certificate must cover the requested hostname in its Subject Alternative Name list. Include the CMS, CDN, tag manager, object storage, payment provider, email templates, and third-party embeds; these commonly introduce HTTP URLs after the first HTTPS release.

Choose one public name

Select a canonical www or apex hostname and redirect the alternative directly to it over HTTPS.

02

Deploy the certificate and current TLS versions

Configure the web server, reverse proxy, CDN, or load balancer that answers the public request. Install the certificate and required chain, bind them to the intended names, and verify them from outside the hosting network. The browser checks the chain, hostname, and dates; a public warning is a release blocker. Default to TLS 1.3 and retain TLS 1.2 only where compatibility requires it. Disable SSL and TLS 1.0 and 1.1. Use maintained platform guidance rather than a copied legacy cipher list, and keep the server and TLS library patched.

Protect keys

Limit access to private keys and record every system that shares one so replacement reaches all of them.

03

Redirect HTTP once and make HTTPS canonical

Return a server-side permanent redirect, normally 301 or 308, from each HTTP URL to its equivalent HTTPS URL. Avoid chains: they add delay and more failure points. Publish canonical HTTPS URLs in internal links, canonical tags, sitemaps, structured data, social tags, emails, and application-generated absolute links. Test the home page, a deep page, a query URL, error routes, and hostname variants. When TLS ends at a proxy, configure trusted forwarded-protocol handling so the application does not loop between HTTP and HTTPS.

Keep HTTP narrow

It can remain available only to redirect or complete a certificate challenge, not to serve a separate public site.

04

Find and fix mixed content at its source

Mixed content is an HTTPS page requesting a resource over HTTP or another insecure protocol. Browsers may upgrade some media, but they block many risky requests, including scripts, stylesheets, frames, fetch calls, and fonts. Replace every reference with a tested HTTPS URL, a relative URL for your own content, or an approved alternative. Crawl representative templates and inspect developer tools while completing key journeys. Check CSS, JavaScript, CMS blocks, asset manifests, tag-manager entries, downloads, and vendor embeds. A secure page should not offer an HTTP download.

Do not rely on upgrades

Automatic browser upgrading may still leave an unavailable or unsupported third-party dependency; correct the stored URL.

05

Automate renewal and rehearse certificate recovery

Treat renewal as an automated deployment, not a calendar reminder. It must renew, deploy to every serving tier, and safely reload the service. Test the same validation route before production expiry. Let’s Encrypt, for example, recommends renewing its 90-day certificates every 60 days; follow the lifecycle for your issuer and platform. Keep certificate names, issuer account, challenge method, automation, key location, targets, and emergency contacts in an inventory. Verify dates from the public endpoint after deployment.

Diagnose early

For a failed renewal, check DNS, challenge routing, permissions, issuer access, rate limits, and CDN-to-origin deployment.

06

Use HSTS only after the HTTPS estate is ready

HTTP Strict Transport Security, or HSTS, is an HTTPS response header that tells browsers to use HTTPS on later visits to a host. Browsers then do not offer visitors a bypass for certificate errors. Send it over HTTPS only and keep the HTTP redirect because HSTS is learned after a secure response unless a preload list applies. Start with a limited max-age and lengthen it after proving renewals and required routes. Do not add includeSubDomains until every present and future subdomain can serve valid HTTPS. Preload is not part of the HSTS specification and merits a separate, long-lived commitment review.

Know the limit of rollback

max-age=0 works only after a browser reaches a valid HTTPS response; it cannot repair an unreachable secure host.

07

Release, test, and roll back without weakening transport

Capture the known-good certificate, edge, and redirect configuration before change. Define who approves a rollback, stage where possible, and change one control class at a time. Immediately check public endpoints from more than one network, follow redirects, inspect the certificate, and complete important visitor actions. Test browsers and client groups that matter to your audience. For payment or regulated flows, ask the payment provider and a qualified security professional to review applicable requirements. If a change breaks HTTPS, restore a validated secure configuration; do not make customer pages HTTP as a workaround.

Record the evidence

Capture the hostname, time, client, error, change, and result so the next renewal or migration is easier to diagnose.

ACTION / VERIFY

Your practical to-do guide.

  1. 01

    Inventory the surface

    List public hostnames, TLS termination, ownership, coverage, renewal, and URL-producing dependencies.

    VERIFY: The list includes apex, www, subdomains, APIs, assets, and embeds.
  2. 02

    Install valid certificates

    Deploy a certificate and required chain for each public name; protect its private key.

    VERIFY: An external check shows the right name, trusted chain, and valid dates.
  3. 03

    Set the protocol policy

    Default to TLS 1.3, retain TLS 1.2 only if justified, and disable SSL plus TLS 1.0 and 1.1.

    VERIFY: An independent TLS test matches the intended policy.
  4. 04

    Redirect HTTP directly

    Use one-hop server-side 301 or 308 redirects to equivalent canonical HTTPS URLs.

    VERIFY: Deep links, queries, and hostname variants avoid loops and chains.
  5. 05

    Remove mixed content

    Update links, templates, assets, APIs, downloads, and embeds to HTTPS or appropriate relative URLs.

    VERIFY: Representative browser consoles show no mixed-content warnings or blocked resources.
  6. 06

    Test key journeys

    Exercise sign-in, forms, uploads, checkout, portals, and API or vendor returns that apply.

    VERIFY: Named owners approve results; obtain qualified review for payment or regulated flows.
  7. 07

    Automate renewal

    Test renewal validation, deployment, reload, public verification, and the replacement-certificate path.

    VERIFY: A rehearsal completes and deployment can be independently verified.
  8. 08

    Add HSTS gradually

    Use a limited max-age after HTTPS is stable; assess subdomains and preload separately.

    VERIFY: Every covered hostname supports valid HTTPS and rollback implications are documented.
  9. 09

    Keep a secure rollback

    Save the known-good configuration, approvals, and final test evidence before release.

    VERIFY: The team can restore a validated secure configuration without serving public HTTP pages.
DISCUSSION TOPICS

Compare the trade-offs, not private data.

Use these prompts with your team or website-owner community. Share methods and lessons, but never paste credentials, customer records, or non-public infrastructure details.

  1. 01

    Which hostname or third-party asset was easiest to overlook, and what made it visible?

  2. 02

    How does your team prove renewal worked at the public edge rather than only in a dashboard?

  3. 03

    What conditions would you require before extending HSTS to subdomains?

POPULAR / AUTHORITATIVE RESOURCES

Open the source material.

OWASPTransport Layer Security Cheat Sheet ↗

Practical TLS, certificate, HSTS, and testing guidance for web applications.

Reviewed 2026-09-27
IETF RFC EditorThe Transport Layer Security Protocol Version 1.3, RFC 8446 ↗

Standards-track TLS 1.3 specification, including early-data behavior.

Reviewed 2026-09-27
MDN Web DocsStrict-Transport-Security header ↗

HSTS directives, scope, browser behavior, and removal limits.

Reviewed 2026-09-27
MDN Web DocsMixed content ↗

Explains blocked or upgraded resources and remediation approaches.

Reviewed 2026-09-27
Internet Security Research GroupLet’s Encrypt FAQ ↗

Official certificate lifetime and renewal guidance for Let’s Encrypt users.

Reviewed 2026-09-27
Google Search CentralSite Moves and Migrations ↗

Permanent redirect, testing, and HTTP-to-HTTPS migration guidance.

Reviewed 2026-09-27

Source policy. This guide uses official standards, vendor documentation, and recognized security guidance. Check advice against your platform, compatibility needs, and applicable obligations before production use.

QUICK CLARIFICATIONS

Common questions.

Do I need both an HTTP-to-HTTPS redirect and HSTS?

Usually, yes. A server-side redirect handles ordinary HTTP visits and browsers that have not learned HSTS. HSTS directs later visits to HTTPS. Enable it only after every covered hostname has reliable HTTPS and a valid certificate.

Is a valid certificate enough to secure my whole site?

No. It protects a hostname’s transport path, not insecure assets, application flaws, weak accounts, or unsafe third parties. Remove mixed content, protect keys, maintain the platform, and use broader security controls.

What should I do if renewal fails?

Act before expiry. Check validation routing, DNS, permissions, issuer access, and deployment targets; use the documented replacement path and verify the public endpoint. Involve the platform, certificate authority, or qualified security team when the cause is unclear.

Status Is UP Editorial Team · Uptime Enablement Editors

Reviewed by Web security and platform operations reviewer. Published 2026-09-27; updated 2026-09-30.