HTTPS and certificate
HTTP redirects to HTTPS
Your site should send anyone who arrives on http:// to the https:// address with a permanent redirect, so visitors never stay on the unencrypted version.
Why it matters
Visitors who type your address without https://, or follow an old link, land on the unencrypted page. Everything they see and send there can be read or changed on the network.
What Scanetra looks for
- What http://your-site/ answers: a redirect to https:// is right; serving the page, or redirecting to another http:// address, is not.
It reads only your homepage's public response. How a scan works
How to fix it
nginx
server {
listen 80;
server_name example.com www.example.com;
return 301 https://$host$request_uri;
}Apache
Needs mod_rewrite. In the port-80 VirtualHost or .htaccess:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]Cloudflare
SSL/TLS › Edge Certificates: turn on Always Use HTTPS.
Vercel and Netlify
Both redirect HTTP to HTTPS automatically for domains with a certificate.
Replace example.com with your own domain, and test changes on a staging copy first where you can.
Check that it worked
Opening http://your-site/ ends on https://your-site/. Then scan again.
Check your own site
A free scan tells you whether your site passes this check, and the 24 others.