As we know, dot files like .htaccess files are hidden by default in cPanel. If you want to make changes in your .htaccess file then you have to made changes for it.

- Login to cPanel.
- Click on “File Manager” and then click on “public_html” folder to view files.
- Here you will find the “settings” option on the upper right corner.

- Now check the checkbox “Show Hidden Files” and then Save changes.