Skip to content
Cloud docs

Force HTTPS on a WordPress site

Redirect every request to HTTPS without creating a redirect loop.

Updated 20 September 20261 min readBeginner

Once the certificate is active, send all traffic to HTTPS. Do it in one place — the platform — rather than in a plugin as well.

Turn it on

Sites → your site → Settings → Force HTTPS. The redirect happens at the edge, before PHP runs, so it costs nothing in performance.

Fix the site URL

WordPress still stores the address it was installed with. Update both values:

wp-cli
wp option get siteurl
wp option update siteurl 'https://example.com'
wp option update home 'https://example.com'
Redirect loops

A loop almost always means two layers are redirecting: the platform and a plugin, or an external Cloudflare set to flexible SSL. Turn off the plugin rule and set Cloudflare to Full (strict).

HSTS

HSTS tells browsers to refuse plain HTTP for your domain in future. Enable it only when HTTPS works everywhere, including every subdomain, because the policy is cached by browsers for months and cannot be withdrawn quickly.

Was this article helpful?

Related articles