Web Hosting Knowledge Base / Hosting and Websites

How to edit .htaccess (or any other hidden files) using cPanel file manager

Using the file editor of filemanager in cPanel is an easy way to edit files for who is not comfortable using command line (SSH access), its self-explanatory process, however, some files including .htaccess or .env is hidden by default in the file manager, here is how to make them visible so you can select and edit them.

To make the .htaccess file visible to edit:

1. Access cPanel from your admin area, launch the filemanager

2. In Settings, enable "Show hidden files (dotfiles)" option and Save.

3. You are ready, double-click into /public_html folder and .htaccess will be visible and ready for editing.

Last update: Mar 02, 2025 01:22