Step 1: First, login to cPanel
Step 2: Browse to File Manager > Document Root:
Step 3: Choose the domain name you want to gain access to
Step 4: Check “Show Hidden Files (dotfiles)”
Step 5: Click on "Save.”
Step 6: Find the .htaccess file if you already have it, then open Edit or create a .htaccess file.
Step 7: You need to right click on the .htaccess file, then click on “Code Edit” on the menu.
Step 8: Add the "RewriteEngine" code to the .htaccess file:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Step 9: Now, click on “Save Changes”.
Step 10: Finally, click on “Close”.
Once complete, your domain will automatically redirect HTTP to HTTPS. If you have any problems, then please contact support.