Introduction of HTTPS
HTTPS is Hypertext Transport Protocol Secure. HTTPS is a protocol which is based on encrypted HTTP in sharing the information with the security layer.easily transfer the confidential information on the web which is further converted into code. It is used to reduce the chances of hacking.
they use a TSL (Transport Layer Security) certificate uses for setting the encryption link between server and web browser. It is responsible for making the data encrypted. For the getting the certificate, you need to give the identity of the website and company.
Encryption means converting the data into codes Humans can’t understand
Steps of moving a website from HTTP to HTTPS
Whenever you are trying something new on the website then for security purpose it is better to take the back up of the content. If something goes wrong then you have the second copy which can save you.
Use SSL Certificate
Buy a SSL certificate from your web host.Generally host gives the option to the website owner to convert their HTTP website into HTTPS. The name of the option gives in cPanel is Let’s Encrypt. which don’t have this option then, they can use Certbot. You just select the web server and operating system.
Edit Wp-Config File
open the wp-config.php in root folder & add the following lines & click save.
Steps : Open Public_html (or the root folder) >> Wp-Config.php >> Edit >> add following >> Save
define(‘FORCE_SSL_ADMIN’, true); >> add following
When you updated the file then open the wordpress dashboard to check everything is going well.
Change the website address
update website address by entering the HTTPS instead of HTTP. You enter the HTTPS before the name of the website. To open your website from HTTPS this step is importent. It is the front end set up.
Steps : Open WP dashboard >> Settings >> General >> Now Change address (change https to https)
Install and configure the Really Simple SSL plugin
fix some issues to make your SSL certificate function properly.Google give that “connection is private BUT” warning because your WordPress site still includes images or other media which are inserted using the regular https://URL, rather than your new https://URL. to fix the issue,Update every single image link to https://.
you don’t need to do that manually.
install and activate Really Simple SSL. After the activation, you should see a popup.Click Go ahead, activate SSL! After clicking the button, you’ll likely get signed out of your dashboard and be asked to sign in again. Don’t worry – this is a natural consequence of changing your WordPress URL from HTTP to HTTPS. Just sign in again with your normal username/password.
To make sure all the other SSL settings were properly updated, go to Settings >> SSL. You should see green check marks.
Mixed Content
It may show warnings like mixed content. In this case you will have to find out all your internal links having https in url and will have to change them to https. you can install the following plugin
Plugin – Easy HTTPS (SSL) Redirection
Set up WordPress redirects from HTTP to HTTPS add following code to .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
If you are on nginx servers add redirect from HTTP to HTTPS in your configuration
server {
listen 80;
server_name example.com www.example.com;
return 301 https://example.com$request_uri;
}
Replace example.com with your Domain name.
you can easily installing and activating the Better Search and Replace plugin
Tools >> Better Search Replace page
search for https://example.com to replace with https://example.com