If you want to redirect your website to HTTPS connection implement bellow code

Hope this small tip help you 🙂