webzod
account

Redirect HTTP straight to HTTPS on Cloudflare

headers.redirect.insecure_first_hop · effort: minutes

Why it matters

The first redirect from http:// goes to another http:// address, so the visitor's request travels unencrypted twice before reaching https. The name the visitor typed also never gets an HSTS header, which is only honoured over https.

The fix

  1. Turn on Always Use HTTPS (SSL/TLS, Edge Certificates) so every http request is first sent to https on the same host.
  2. Check Rules, Overview for Redirect Rules or Page Rules whose target URL starts with http:// and change them to https://.

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.