[ Web Proxy ]
URL:
Viewing: https://developers.cloudflare.com/ssl/edge-certificates/additional-options/always-use-https/ [Back]  [Original]

Always Use HTTPS Cloudflare SSL/TLS docsSkip to content
SearchCtrlKLog in
  1. Home
  2. /SSL/TLS
  3. /
  4. /Additional options
  5. /Always Use HTTPS

Always Use HTTPS

Last updated Aug 14, 2026Copy as MarkdownView as MarkdownAgent setup
OverviewAvailabilityEncrypt all visitor trafficLimitations

Always Use HTTPS redirects all your visitor requests from http to https, for all subdomains and hosts in your application.

Note

This process does not impact certificate validation. If you use HTTP DCV, you can still enable Always Use HTTPS.

Cloudflare recommends not performing redirects at your origin web server, as this can cause redirect loop errors.

Availability

Free Pro Business Enterprise
Availability Yes Yes Yes Yes

Encrypt all visitor traffic

To redirect traffic for all subdomains and hosts in your application, you can enable Always Use HTTPS.

Note

If only some parts of your application can support HTTPS traffic, do not enable Always Use HTTPS and use a single redirect to selectively perform the redirect to HTTPS. Refer to Redirect admin area requests to HTTPS for an example.

To enable Always Use HTTPS in the dashboard:

  1. In the Cloudflare dashboard, go to the SSL/TLS Overview page.

    Go to Overview ↗
  2. Make sure that your SSL/TLS encryption mode is not set to Off. When you set your encryption mode to Off, the Always Use HTTPS option will not be visible in your Cloudflare dashboard.

  3. Go to the Edge Certificates page.

  4. Turn on Always Use HTTPS.

To enable or disable Always Use HTTPS with the API:

  1. Make sure that your SSL/TLS encryption mode is not set to Off.
  2. Send a PATCH request with always_use_https as the setting name in the URI path, and the value parameter set to your desired setting ("on" or "off").

Limitations

Forcing HTTPS does not resolve issues with mixed content, as browsers check the protocol of included resources before making a request. You will need to use only relative links or HTTPS links on pages that you force to HTTPS. Cloudflare can automatically resolve some mixed-content links using our Automatic HTTPS Rewrites functionality.

PreviousError messagesNextOpportunistic Encryption

Was this helpful?

YesNo
Edit pageReport issue
[]

Web Proxy Viewer  |  New URL  |  Original Page