How to force HTTPS (redirect HTTP to HTTPS) and enable HSTS

For hosting customers · Updated 2026-10-29

On this page
  1. How the automatic redirect works
  2. Turn on HSTS (optional)
  3. Good to know
  4. Common questions

You do not need a rule to force HTTPS. As soon as a website has a valid certificate (status Secured on SSL/TLS), every visit to http:// is redirected permanently (301) to the same address with https://.

How the automatic redirect works

  • It starts within a minute after the certificate is issued.
  • It applies to the domain, www and aliases covered by the certificate.
  • Only /.well-known/acme-challenge/ stays reachable over HTTP, so certificates can renew.
  • No .htaccess rule is needed. Remove old HTTPS rules from .htaccess if you see redirect loops.

Turn on HSTS (optional)

HSTS tells browsers to always use HTTPS for your website, even if someone types http://. Turn it on only when the site works fully over HTTPS.

  1. Log in to the control panel (https://your-server:2083).
  2. Open Access Control (section Domains) and scroll to Protection.
  3. Next to your website, find HTTPS not enforced in browsers and click Turn on.
  4. Confirm the message Browsers will refuse to open this site without HTTPS for a year, even if the certificate is removed. Continue?
  5. The message Saved. appears and the line shows HTTPS enforced in browsers.

The HSTS option is shown only for websites that already have a certificate.

Important: after HSTS is on, visitors' browsers remember it for a year. If the website later loses its certificate, those visitors cannot open it until it has one again.

Good to know

  • To turn HSTS off, click Turn off on the same line. Browsers that visited the site keep HTTPS until the year has passed.
  • Behind Cloudflare, you can also click Always use HTTPS on the Cloudflare page.
  • Pages that load images or scripts with http:// addresses show a "not secure" or "mixed content" warning even over HTTPS. Change those addresses to https:// in your website.

Common questions

My site still opens with http://.

Check SSL/TLS: the redirect starts only when the status is Secured.

Was this article helpful?

Still stuck?

Ask the AI about your exact situation — it answers from this knowledge base — or contact us.