- Log into cPanel
2. Go to File Manager
3. Go to public_html folder
4. Now click on Settings from the right upper site and select "show hidden files" as .htaccess file kept hidden in file manager, click save. See the image
5. Open .htaccess file (right click on mouse and choose edit)
6. Just add these lines given below and click save
RewriteEngine On
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]