Making your WordPress website work with SSL is quite easy. There are a few plugins available online that work with WordPress though many of them have been found to slow your website down. I’ve found it much fast to directly input the code into the .htaccess file.
Assuming you’re using cPanel, log in and edit your “.htaccess” file. If you can’t see your “.htaccess” file, when you click on “File Manager”, make sure you that show all file. Once you’ve found it, edit it and replace the existing rules with these ones.
Add code to .htaccess file
Please note, the below code is for websites with “post-name” permalinks set up. If you reset your permalinks your WordPress may very well overwrite these settings so keep that in mind when you refresh your permalinks in future.
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.YOURWEBSITE.com/$1 [R,L] </IfModule> # END WordPress
Be sure to replace https://www.YOURWEBSITE.com to your actual website address with https in it.
Please also note that you need to have an SSL certificate installed on your hosting.