Adding a security certificate to a WordPress website

1) In the htaccess file, replace the text with this: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> 2) In the wp-config file, add this: define(‘FORCE_SSL_ADMIN’, true); 3) Force SSL across the site by setting this in wp-config too: define(‘WP_HOME’,’https://example.com’); define(‘WP_SITEURL’,’https://example.com’);