How to make WordPress use SSL and HTTPS
- Login to your WordPress dashboard and navigate to Settings > General
- Change the http:// to https:// in your WordPress Address (URL) and Site Address (UR) fields.
- Save changes and you're all set!
If you’re implementing SSL on your existing WordPress site, you will need to make a change to your .htaccess file as well.
- Log in to your site via FTP or cPanel file manager, find the .htaccess file in your main WordPress directory
- Add the following code into your .htaccess file
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L] - Replace yourdomain.com with your site’s URL and save changes.
If your site is showing a “partially secure” warning by the browser, which is quite common for WordPress sites using 3rd party SSL certificates. You can use a plugin, such as Really Simple SSL to resolve this.