How to set up SSL and make your site secure with HTTPS

Confirm your free SSL certificate has issued, redirect all visitors to HTTPS, and clear up mixed content warnings.

TutorialBeginner15 min to completeLast updated
On this page
  1. What you’ll need
  2. Step 1: Confirm the domain resolves to Traxio
  3. Step 2: Check the certificate
  4. Step 3: Request it if it’s missing
  5. Step 4: WordPress: update the site address
  6. Step 5: Add the HTTPS redirect
  7. Step 6: Test the redirect
  8. Step 7: Fix mixed content
  9. Check it worked
  10. If something goes wrong
Level
Beginner
Time
About 15 min
Steps
7
You’ll finish with
A working result, checked

7 steps

What you’ll need

  • A domain that already points to Traxio
  • DirectAdmin access

Certificates issue automatically, but a certificate alone doesn’t move visitors to HTTPS. This tutorial checks the certificate, adds the redirect and fixes anything still loading insecurely.

Step 1: Confirm the domain resolves to Traxio

Certificates can’t issue until it does. How to check your domain is pointing to Traxio

Step 2: Check the certificate

Visit https://yourdomain.co.uk and https://www.yourdomain.co.uk. Both should load with no warning. Or open Account Manager › SSL Certificates to see the installed certificate and the names it covers.

Step 3: Request it if it’s missing

In Account Manager › SSL Certificates, choose the free certificate option, tick your domain and www, and save. Wait a few minutes. SSL certificate not issued or not renewing

Step 4: WordPress: update the site address

In Settings → General, change both addresses to https://. You’ll be asked to log in again.

Step 5: Add the HTTPS redirect

In System Info & Files › File Manager, edit public_html/.htaccess (show hidden files) and add at the top:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Step 6: Test the redirect

In a private window, visit http://yourdomain.co.uk/. The address bar should change to https://.

Step 7: Fix mixed content

Open a few pages with developer tools (F12) on the Console tab and look for Mixed Content warnings. Update any http:// images or scripts. How to fix mixed content warnings

Check it worked

http://yourdomain.co.uk redirects to https://, the padlock shows on every page you checked, and the console shows no mixed content warnings.

If something goes wrong

What happensWhat to do
Too many redirectsConflicting redirect or Cloudflare Flexible SSL. “Too many redirects” and HTTPS redirect loops
Certificate warning on www onlyRequest the certificate with www ticked. Site works with www but not without (or the reverse)
500 error after editing .htaccessA typo. Restore the file and paste the rule again. 500 Internal Server Error: how to fix it

Following along without an account? Traxio web hosting gives you everything this tutorial uses, at £0.99 a month.

Where this fits: Web hosting for beginners brings together everything you need for a first website, in order.

Spotted something out of date or unclear? Tell us and we’ll fix it.

Keep going