- Login to cPanel.
- Find and Click on Filemanager (Figure 1).
- Click on Settings (Figure 2) and check (Show hidden files (Figure 3)) .
- If you can’t find .htaccess file then create new file in your domain document root (public_html in this case) and name it .htaccess (Figure 4).
- Edit the .htaccess and add this directives
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]