This post was created for all those who are lost like me in a topic that no website owner can skip – implementing a secure HTTPS version of our website using SSL file. I present a short guide to implementing HTTPS file.

Before we start the HTTPS file deployment process I have prepared a short checklist of essential accesses you need to have in order to be able to implement Let’s Encrypt free SSL certificate without any problems.

  • access to FTP server (e.g. FileZilla)
  • access to WordPress
  • Better Search Replace plugin
  • Google Search Console
  1. In your WordPress settings, under the “General” tab, change your WordPress address and site address from http to https.
  2. Find the folder with the .htaccess file located on your server in your WP folder. Then right click “Preview/Edit”.
  3. Then embed the following code in that file without making any changes:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

</IfModule>

RewriteEngine On
RewriteBase /

RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

  1. Use the free Better Search Replace plugin to swap pages in the database. This will redirect all resources from http to https. In the “serve for” place type your domain starting with http, below “replace with” put the page with https prefix. Be sure to uncheck the “Run as dry run” option so that all the necessary changes are made.
  2. Remember to index the new version of the page with https in Google Search Console. By doing so, your site will be more easily noticed by both search engine and users.

I hope that my short and to-the-point guide did not cause you any problems and your SSL certificate implementation went well. In case of any problems or other ways of implementation, be sure to let me know!

Udostępnij wpis w social mediach