HTTP to HTTPS redirect
Plain HTTP requests should redirect to HTTPS so users are never served content over an unencrypted channel. Without redirect, content served over HTTP can be read or modified by anyone on the network — including injected malicious scripts.
How HTTP to HTTPS redirect works
Every modern HTTPS deployment should redirect plain-HTTP requests to HTTPS. Without the redirect, anyone on the network path between the user and your server can read or alter the response — and in practice this means injecting tracking, ads, or hostile JavaScript into pages that should have been encrypted. Public WiFi, hotel networks, and (historically) some ISPs have all done this at scale.
The redirect should happen on the same hostname before any cross-host redirect. http://example.com should go to https://example.com, not directly to https://www.example.com. Why? Because HSTS is set on the host the browser landed on first — if you skip the same-host hop, the browser never sees an HSTS header for the apex domain and the next plain-HTTP request to example.com is again unprotected.
Use 301 (Moved Permanently) rather than 302 — browsers cache 301s aggressively, which means subsequent visits skip the plaintext request entirely even before HSTS kicks in. A server that doesn't listen on port 80 at all also serves nothing over plain HTTP, and this audit counts that as a pass. Visitors who type the bare name then get an error instead of the site, though, so a 301 redirect is the better choice.
How to fix it
Configure your web server to 301-redirect all http:// URLs to their https:// equivalents.
The 1 HTTP to HTTPS redirect check Vendor Audit runs
Each check has a fixed set of results, and each result has one rating. These are the exact words the report uses.
HTTP→HTTPS redirect
Standard: RFC 6797 §7.2
- PASSPlaintext HTTP not serving content
- HighPort 80 serves content without redirecting to HTTPS
- HighHTTPS redirects back to plain HTTP — visitors end up on an unencrypted page