TLS & HTTPS
Per-domain rule
boolean
redirect_to_https
Send plain-HTTP visitors a redirect to the HTTPS URL.
- Config key
redirect_to_https- Scope
- Per-domain rule
- Type
- boolean
- Default
false
When true, requests arriving on HTTP are answered with a redirect to the same URL over HTTPS. The standard way to guarantee encrypted traffic without breaking bookmarks or inbound links.
💡Pair with HSTS
Enable this for any site that should be HTTPS-only. Combined with a long cache of the redirect, repeat visitors go straight to HTTPS.
redirect_to_https = true