Login to cPanel
Once logged into cPanel, click on the “File Manager” located in the Files section of cPanel.


Find the .htaccess file in root directory like public_html. If your website is in a subfolder, then the .htaccess should be placed in the corresponding subfolder.

A dialogue box may pop up asking about encoding. Click the “Edit” button to continue.


RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
“Save Changes” when done.
Test your website to make sure it is loading without any error. In case, there is an error, restore to the previous version and try again.
Once you are done, click “Close” to close the window.