If any part of your site still loads over plain HTTP, you are exposing visitors, search rankings, and your own credibility to risk. HTTPS encrypts traffic, prevents tampering, and unlocks modern browser features - making it a non-negotiable part of every WordPress site.

What does HTTPS actually do?

HTTPS (HTTP Secure) wraps the standard HTTP protocol in TLS encryption. When a visitor connects, the browser and server perform a TLS handshake, exchange certificates, and agree on a symmetric key. All subsequent data - page HTML, images, form fields, cookies - is encrypted with that key. Anyone intercepting the traffic sees only ciphertext and cannot modify it without breaking the cryptographic integrity check, which browsers would flag as a security error.

Why does it matter if my site has no login forms?

Even a purely informational site benefits from HTTPS for four practical reasons:

  1. Browser trust indicators - Modern browsers label any page served over HTTP as “Not secure”. That warning appears in the address bar, on the tab, and sometimes as a full-page interstitial, which scares away casual visitors.
  2. Search engine ranking - Google treats HTTPS as a lightweight ranking signal. It won't lift weak content, but there is no reason to give it away.
  3. Content injection risk - Without encryption, a man-in-the-middle can inject ads, malware, or malicious redirects into the page stream. Those injections can damage your reputation and may lead to black-listing by browsers or security tools.
  4. Feature compatibility - Many HTML5 APIs (service workers, geolocation, payment request) and progressive web-app capabilities only function when the page is loaded over HTTPS.

How to obtain and install an SSL/TLS certificate

  1. Check what your host already offers - Most hosts issue and renew free certificates from a trusted certificate authority (CA) with one click. On a server you manage yourself, request one from a CA that browsers trust. Generate a CSR (Certificate Signing Request) from your server or let your hosting control panel do it automatically.
  2. Validate domain ownership - The CA will ask you to prove control of the domain, usually via a DNS TXT record or a temporary file placed on the web root.
  3. Install the certificate - Place the issued certificate and private key files in the appropriate directory (e.g., /etc/ssl/ on Linux) and configure your web server (Apache, Nginx, etc.) to use them.
  4. Test the installation - Use an online TLS checker or run openssl s_client -connect yourdomain.com:443 -servername yourdomain.com to verify that the certificate chain is complete and trusted.

Redirect all HTTP traffic to HTTPS

A single HTTP request should never reach a visitor. Implement a permanent redirect (HTTP 301) from port 80 to the HTTPS version of the same URL.

# Apache example in .htaccess or virtual host
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Nginx example in server block
server {
    listen 80;
    server_name example.com www.example.com;
    return 301 https://$host$request_uri;
}

After adding the redirect, clear any caching layers and test by requesting http://yourdomain.com - the browser should land on https://yourdomain.com instantly.

Fixing mixed content issues

When an HTTPS page includes resources (images, scripts, stylesheets, iframes) that are still loaded over HTTP, browsers either block them or display a warning. To resolve:

  1. Search for http:// strings in theme files, plugins, and the database. Tools like grep or a database search plugin help locate hard-coded URLs.
  2. Replace them with HTTPS URLs, or with relative paths for files on your own site.
  3. Load scripts and styles the WordPress way with wp_enqueue_script and wp_enqueue_style, which build their URLs from the site address you set to HTTPS.
  4. Run a site-wide scan after changes to ensure no mixed content remains. The linked article on scanning can guide you: scan your site from the outside.

Enforcing HTTPS with HSTS

HTTP Strict Transport Security (HSTS) tells browsers to always use HTTPS for your domain, even if the user types http://. Add the following header to your server configuration:

Header always set Strict-Transport-Security "max-age=31536000"
add_header Strict-Transport-Security "max-age=31536000" always;

Start with a short max-age (a day) and raise it once everything works. Add includeSubDomains only when every subdomain serves HTTPS, and preload only when you are sure, because removal from the preload list takes months.

  • max-age defines how long (in seconds) the rule is cached.
  • includeSubDomains applies the rule to all sub-domains.
  • preload signals intent to be included in browsers’ HSTS preload lists, which you can submit through the official preload website.

For a deeper look at HSTS and related headers, see the dedicated guide: HSTS and other security headers.

Automating certificate renewal

TLS certificates have a limited lifespan (often 90 days). Manual renewal creates a window where the site serves an expired certificate, breaking HTTPS and alarming users. Most hosts renew automatically. On a server you manage, schedule the certificate client to renew and reload the web server.

# Example cron entry for daily check
0 3 * * * /usr/bin/certbot renew --quiet && systemctl reload nginx

The --quiet flag suppresses output unless an error occurs. Verify that renewal works by forcing a test renewal: certbot renew --dry-run.

Common mistakes when deploying HTTPS

  • Serving real pages on port 80 - Port 80 should stay open, because the redirect and many certificate renewals use it, but it should only ever answer with a redirect to HTTPS.
  • Mixed content in third-party embeds - External widgets, ads, or analytics scripts may still request HTTP resources. Either switch to HTTPS versions of those services or remove them.
  • Incorrect certificate chain - Forgetting to include intermediate certificates results in “certificate not trusted” errors on some browsers.
  • Forgetting to update WordPress and plugin URLs - The site URL and home URL settings must use https://. Update them in the Settings panel or via wp-cli.

Limitations of HTTPS alone

HTTPS encrypts traffic and verifies server identity, but it does not protect against:

  • Server-side vulnerabilities such as SQL injection, cross-site scripting, or insecure plugins.
  • Phishing attacks that use a valid HTTPS certificate on a malicious domain.
  • Misconfigured HSTS - If you set a long max-age and later need to serve HTTP for a sub-domain, browsers will continue to enforce HTTPS until the period expires.
  • Client-side certificate validation - HTTPS does not verify the identity of the visitor unless you implement mutual TLS, which is uncommon for public sites.

How Silent Threads helps

Silent Threads can require HTTPS for wp-admin and logins, mark login cookies as HTTPS-only, and send an HSTS header once your site runs on HTTPS. It doesn't scan your pages for mixed content, so check for that in your browser's developer tools. The free security checker shows whether your site redirects to HTTPS and whether its certificate is valid.

The short version

HTTPS encrypts traffic, builds trust, improves SEO, and enables modern web features. Obtain a trusted certificate, force all traffic to HTTPS, fix mixed content, add HSTS, and automate renewal. Test thoroughly, watch for common pitfalls, and remember that HTTPS is a foundation, not a complete security solution.