To redirect your website from http to https or non www to www by just create .htaccess (starting with [dot] or end on ss) name file in your public_html folder of your web hosting directory and paste the following code in this file.
If you are unable to create/edit .htaccess file. This article will show that How to show hidden files (.htaccess) in cPanel File Manager?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond !{HTTPS} off
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>