Hi,
You can redirect HTTP traffic to HTTPS using the .htaccess file. The below code, when added to a .htaccess file, will automatically redirect any traffic destined for http: to https:
~~~~~~~~~~~~~~~~~~~~~~~~
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
~~~~~~~~~~~~~~~~~~~~~~~~
However, if you are using Wordpress CMS, you should change the site URL from http://domainname.com to https://domainname.com on the WordPress admin panel, navigate to Settings >> General and change the WordPress Address (URL) and Site Address (URL) with HTTPS. Also you should change all installed plugins and themes url from http to https. Better you may install a plugin called really-simple-ssl https://wordpress.org/plugins/really-simple-ssl/ it will simply convert everything from http to https and revert it. If you encounter any issues please do not hesitate to open a ticket request