Skip to content

Force Your Website to Use HTTPS Print

  • 0

Once your site has an SSL certificate, send all visitors to the secure https:// version.

WordPress sites

  1. In WordPress, go to Settings, General.
  2. Make sure both WordPress Address and Site Address start with https://, then save.

Any site: use .htaccess

Add these lines at the top of the .htaccess file in your site's folder (for example public_html):

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]

Download a copy of .htaccess before you edit it. If your site shows an error afterwards, put the old copy back.

Mixed content warnings

If the padlock is missing on some pages, those pages still load images or scripts over http://. Update those links to https://.

Need help? Open a support ticket or email support@anykey.sx.


Was this answer helpful?

« Back

Cookie Policy · Privacy Policy