For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Ensure that a valid SSL certificate is configured for the CDN Resource before enabling Always Use HTTPS. Otherwise, redirected requests may fail because the HTTPS connection cannot be established correctly.

Configure Always Use HTTPS

1

Open Security

Open your CDN Resource and select Security.

2

Enable Always Use HTTPS

Turn on Always Use HTTPS.

3

Select the Redirect Code

Under Redirect code, select the HTTP status code used for the redirect:

  • 301 — Permanent redirect. Recommended for production environments and SEO.

  • 302 — Temporary redirect. Use when HTTPS enforcement may change in the future.

4

Save the Configuration

Select Save in the pending changes bar.

Review the pending changes and confirm the configuration.

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 301 or 302 status 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

Last updated

Was this helpful?