How to set up HTTPS on your website: a plain-English walkthrough
To set up HTTPS on your website, install a TLS certificate (a free one from Let's Encrypt is fine), redirect all http:// traffic to https:// with a permanent 301, clear any remaining insecure content, then turn on HSTS once every page loads cleanly. Most hosts handle the certificate part for you in a couple of clicks.
HTTPS encrypts the connection between a visitor's browser and your server, so logins, form entries and page content cannot be read or tampered with in transit. Browsers now flag plain http:// pages as Not Secure, so this is a baseline rather than a nice-to-have.
This guide takes the four steps in order, with pointers for both hosting control panels and direct server setups. Where a step is easy to get half-right, we flag what to check so you do not end up with a padlock that quietly breaks pages.
Step 1: Get a certificate (Let's Encrypt is free)
A TLS certificate proves your site controls its domain and lets the browser encrypt the connection. You do not need to pay for one. Let's Encrypt issues free, trusted certificates that every mainstream browser accepts, and most hosting panels can request and renew them for you automatically.
Where you do this depends on your setup. The quickest route is your host's control panel; a direct server needs a command-line tool instead.
- Hosting panel (cPanel, Plesk, SiteGround Site Tools and similar): find the SSL or Let's Encrypt section, pick your domain, and install. Renewal is usually automatic.
- Managed WordPress or website builders: HTTPS is often already on; check your domain settings for an SSL toggle.
- Your own server (Apache or Nginx): install Certbot, run it against your domain, and let it write the config. Set the renewal timer so the certificate never lapses.
- Whatever route you take, make sure the certificate covers both example.co.uk and www.example.co.uk if you use both.
Step 2: Force every visitor onto HTTPS with a 301 redirect
Installing a certificate does not stop people reaching the old http:// version. You need a permanent (301) redirect so every request lands on the https:// address. A 301 also tells search engines the secure URL is the canonical one, so you keep your ranking signals.
On Apache this is usually a few lines in .htaccess; on Nginx it is a redirect server block; in WordPress, a plugin or your host's force-HTTPS toggle can handle it. After setting it up, type your old http:// address into a fresh browser tab and confirm it jumps to https:// on its own.
Step 3: Clear mixed content so the padlock stays solid
Mixed content is when a secure https:// page still loads an image, script or stylesheet over plain http://. Browsers may block those resources or drop the padlock, so the page looks broken or untrusted even though your certificate is fine.
The fix is to update those references to https://. In WordPress, correcting the Site Address and running a search-replace of old http:// URLs usually clears it. Keep an eye on your browser's developer console for mixed-content warnings until the page loads with no complaints.
- Hard-coded http:// links to your own images, CSS or JS
- Third-party widgets, fonts or analytics loaded over http://
- Old URLs saved in the database from before the move
Free, instant, no account
See your site's security grade in seconds.
Free, instant, and no account needed to see your grade.
Scan my site freePlain-English A to E grade in about 10 seconds. No account needed to see it.
Step 4: Turn on HSTS (only once everything works)
HSTS (HTTP Strict Transport Security) is a response header that tells browsers to only ever connect to your site over HTTPS, even if someone types http://. It closes the small gap between the first request and the redirect.
Add the Strict-Transport-Security header with a real max-age once you are confident HTTPS is solid across the whole site. Start with a shorter max-age, confirm nothing breaks, then raise it. Do not enable HSTS while any page or subdomain still needs http://, because browsers will remember the rule and you cannot easily undo it mid-rollout.
Check your work with a free external scan
Once the four steps are done, it helps to confirm the result from the outside. The free EB Security check runs a passive external scan and reports back in about ten seconds: whether HTTPS is present, whether your certificate matches the domain, is from a trusted authority and is still in date, whether http:// redirects to https://, whether outdated TLS 1.0/1.1 is still accepted, and whether HSTS is set with a real max-age.
It is a fast first signal, not a full audit. It reads only what your site already serves publicly, so it does not log in, change anything, or inspect your server's files. Treat a clean result as confirmation the encryption basics are right, then watch the certificate expiry date so a renewal never slips.
Setting up HTTPS is four ordered steps: install a free certificate, force a 301 redirect to https://, clear any mixed content, then switch on HSTS. Verify it with an external scan and watch the expiry date.