Always Use HTTPS
Configure Always Use HTTPS to redirect HTTP requests to HTTPS using a permanent or temporary redirect.
Redirect HTTP requests to HTTPS to ensure that content is delivered over an encrypted connection.
Always Use HTTPS redirects requests received over HTTP to the HTTPS version of the same URL. You can configure the redirect to use either a permanent (301) or temporary (302) HTTP status code.
Configure Always Use HTTPS
After the configuration is saved, HTTP requests are redirected to HTTPS using the selected redirect code.
Behavior
When Always Use HTTPS is enabled:
HTTP requests are redirected to the HTTPS version of the same URL.
Request paths and query strings are preserved during the redirect.
Existing HTTPS requests are not redirected.
Redirected requests return the configured
301or302status code.HTTPS delivery requires a valid SSL certificate for the CDN Resource.
Redirect Codes
The redirect code determines whether clients should treat the HTTPS destination as permanent or temporary.
Redirect Code
Type
Use
301
Permanent
Use when HTTP-to-HTTPS redirection is intended to remain in place.
302
Temporary
Use when HTTPS enforcement may change in the future.
For more information about HTTP status codes, see HTTP Response Codes
Related Concepts
Last updated
Was this helpful?
