All tutorials
SecurityBeginner

SSL & HTTPS Explained: Secure Your Site in 5 Minutes

What SSL certificates do, how to force HTTPS, fix mixed-content warnings and add security headers.

Hostn.ME Team 6 min read 20 viewsUpdated November 22, 2026

HTTPS encrypts traffic between your visitors and your server. Browsers flag non-HTTPS sites as "Not secure", and Google uses HTTPS as a ranking signal.

1. Get a certificate (free)

Every Hostn.ME plan issues a free Let's Encrypt certificate automatically once your domain points to us. Check Dashboard → SSL.

2. Force HTTPS

Toggle Force HTTPS in the dashboard, or on Apache/LiteSpeed add to .htaccess:

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

3. Fix mixed content

If the padlock is missing, some resources still load over http://. Open DevTools → Console to find them. In WordPress:

wp search-replace 'http://yourdomain.com' 'https://yourdomain.com' --all-tables

4. Add security headers

Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"

5. Verify

Test your site at SSL Labs. Aim for an A or A+ rating.

Stuck on a step?

Our AI assistant knows every tutorial, and a real engineer is one click away.