Instructions to switch the entire HTTP protocol to HTTPS – Your website is using the HTTP protocol, but after a conditional period, you want to switch to HTTPS protocol, but when you have installed the HTTPS protocol, the following error occurs. When I click on the links before, I can’t see the SSL certificate or when I visit the homepage, I can’t see the SSL protocol but when I access the article, I have it?
And these are the 2 cases you often encounter when switching the HTTP protocol to HTTPS. So to automatically convert from HTTP to HTPPS protocol in wordpress what to do? There are 2 ways to solve this problem, you can interfere with the .htaccess file or simply use a Plugin.
Instructions to switch the entire HTTP protocol to HTTPS
Method 1: Use the code provided below and paste it in the .htaccess file
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/ [R,L]
If there are already commands in the .htaccess file, you can skip it without using the same code as above.
Method 2: Use Plugin to convert all HTTP protocol to HTTPS
With Really Simple SSL plugin will redirect all traffic from HTTP to HTTPS for all pages of your WordPress site.
Effects of the plugin
All incoming requests will be redirected to HTTPS. If possible with .htaccess, or with javascript
Site urls and addresses changed to HTTPS
All hyperlinks in the front-end are changed to HTTPS, so any HTTP urls, in topics, or content will be converted to HTTPS
To use this plugin first you need to do the following. Go to Settings Menu > Overview and change the website address with SSL certificate again, then save.

Install Plugin in one of two ways
You can download the Really Simple SSL plugin to your computer here > after downloading you proceed to the Menu Extensions > Install New Plugin > Upload Plugin > select Choose File and navigate to the Plugin you just downloaded > then select Install.
Or simply, you can install it directly by going to the Menu Extensions > Install New Plugin . Now type the keyword Really Simple SSL then just click Install.
After installing and activating it, you will now see an additional Menu named SSL in the Settings Menu

Click on SSL Menu to install Plugin. The interface is quite simple, you just need to enable the Force SSL without detection feature.

That’s it, you’ve made the transition of the entire HTTP protocol to HTTPS in a very simple way!
Note when using the Plugin: Your website must install an SSL certificate, otherwise when you enable this feature, it will break the structure of your website.
The last thing if you have a better way than don’t hesitate to post, wish you success.

