Create the .htaccess file in your website folder and add the below line to redirect a website from HTTP to HTTPS.
To enable http to https redirection, you must have installed a SSL certificate.Click here to know