How to run a site on https://

A certificate protects the site only at https://. Without a redirect the site opens at both addresses: browsers mark the http version as "Not secure", and search engines see two identical sites. Turn on the redirect so that every visitor gets HTTPS.

Enable the redirect

  1. Attach a certificate first: Let's Encrypt or purchased.
  2. "Sites" → three dots on the site → "Edit".
  3. Choose the certificate in "SSL certificate". HTTPS settings appear.
  4. Enable "Redirect HTTP-requests to HTTPS".
  5. Click "Save".
HTTPS redirect
HTTPS redirect

Now a request to http://example.com/page gets a 301 response to https://example.com/page — the page address is kept.

Set up the CMS

  • WordPress: "Settings" → "General" → "WordPress Address (URL)" and "Site Address (URL)" — with https://.
  • Other CMS: the site address in the settings or in the configuration file.
  • Replace links to images and scripts with http:// in the theme and content with https://. Otherwise the browser reports mixed content.

Common mistakes

  • Endless redirect (ERR_TOO_MANY_REDIRECTS). The redirect is set in two places: in the panel and in .htaccess or a plugin. Keep one — in the panel.
  • A site behind Cloudflare in SSL Flexible mode also loops. Choose Full (strict): Cloudflare.
  • The redirect is on, but there is no certificate or it is self-signed — the browser shows a warning. Enable the redirect after a real certificate is issued.
  • The certificate was issued without www — an error on www.example.com. Issue the certificate for the domain together with www.

If HSTS is available in the site settings, enable it only when HTTPS works without errors: browsers remember this rule and stop opening the site over http.

Questions and answers
Enable "Redirect HTTP-requests to HTTPS" in the site settings. Without it the site works on both addresses.
Change the site address to https:// in the CMS settings and remove your own HTTPS redirects from .htaccess if they duplicate the panel setting.
The page loads images or scripts over http://. Change those links to https:// in the theme and CMS settings.