Turn on HTTPS with a free SSL certificate
Show the padlock on your website and redirect visitors to the secure address.
HTTPS encrypts the traffic between your visitors and your site. Browsers warn about pages without it.
Issue the certificate
- In cPanel open SSL/TLS Status.
- Select your domain and its www version.
- Click Run AutoSSL and wait a few minutes.
Redirect to HTTPS
Add these lines at the top of the .htaccess file in public_html:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]In WordPress also change both addresses in Settings → General to start with https.
