What is HTTPS redirect?
Also called: HTTP to HTTPS redirect, Force HTTPS
Most browsers and links can still reach the old http:// version of an address. An HTTPS redirect answers that request by sending the visitor straight to the secure https:// page. Without it, a visitor can stay on a page that is not encrypted.
Why it matters
Security protects your visitors and builds trust. Google documents HTTPS as a lightweight ranking signal, and that is all it says; the main reason to redirect is that visitors stay on the secure page.
How Onbiom checks it
Onbiom's rule: we send one plain http:// request to the host you typed, with a short timeout of 4 seconds, and read only the status and the Location header. It passes when the answer is a redirect (301, 302, 307 or 308) that leads to https:// within two steps and stays on your own site or its www version.
It fails when the plain address shows your page with a normal 200 answer instead of redirecting. If nothing answers, the answer is slow, or the redirect goes to another site, the result is unknown and is not counted in your score.
In your report this appears as: Plain address goes to the secure page.
How to check it yourself
- Open your site with http:// in front of the address, for example http://example.com.
- Check that the address bar changes to https:// and the padlock appears.
curl -sI http://example.com | head -n 5Not sure about your own site? Paste your address and see in a minute which of these checks your site passes. Free, no account needed.
How to fix it
- Any website
- Turn on the setting called something like "Always use HTTPS" or "Force HTTPS" at your host or website builder.
- Cloudflare
- Open your domain, go to SSL/TLS, then Edge Certificates, and switch on Always Use HTTPS.
- Apache
- Add a rewrite rule that sends requests without HTTPS to the https:// address with a 301 redirect, then reload Apache.
- nginx
- Add a server block listening on port 80 that returns a 301 redirect to the https:// version of the same address.
Related terms
Sources and further reading
Last reviewed: