Hidden files, by default, is does not appear when you use cPanel’s File Manager tool. If you may not know yet, the hidden files in cPanel are the ones that begin with a dot, e.g. .htaccess, .htpasswd, and .bashrc files.
Hidden files are commonly edited. Thus, if you want to edit them through the File Manager, make sure you have the checkbox for it checked.
How do you show hidden files?
Normally, the Directory Selection window will pop up. If it doesn’t and you got in the File Manager and see no hidden files, the pop-up window must have been disabled. Clicking the Skip this question, and always open this directory in the future when opening the file manager option will do this.
To enable the pop up again:
If your cPanel’s using the Paper Lantern theme, the procedure will be a bit different.
Editing your .htaccess
The .htaccess file contains instructions or directives that tell the server how to act or behave in specific instances. It affects the way your website functions directly. These directives include redirects and rewriting URLS, which are two common ones.
Scripts like WordPress, Joomla, Drupal, and Magento add directives to the .htaccess file to help them work at all.
There can be other reasons to edit .htaccess at any point. However, we’ll teach you how to edit the file, not what to change in it. We will use the cPanel File Manager to do this.
Before proceeding, we highly encourage you to back up your website first so that you can revert back to the previous version if you don’t like the results of your actions.
How to edit .htaccess