Before you start, make sure you have logged in to cPanel
1) Now click on the File Manager.
2) Ensure that the “Show Hidden Files” is ticked; you will not be able to view the .htaccess file if it is not ticked.
3) In the “Public_Html “directory, right click on the “.htaccess” and click edit.
4) Click “edit” to continue.
5) When you have completed editing the file click “save changes.”