The article described steps to redirect HTTP to HTTPS in WordPress in different ways such as cPanel, .htaccess, Apache
Login Your C Panel and find .htaccess file and edit this file
add code to .htaccess file
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Second Method Adding HTTPS to the WordPress Admin Area
After your SSL certificate is available to use, you’ll next want to change your WordPress admin area to HTTPS.
To do this, all you have to do is add this line of code to your wp-config.php file:
define ('FORCE_SSL_ADMIN', true);
The wp-config.php file is in the main WordPress folder (often called wp-content), which can be accessed through an FTP program.