Files whose names begin with a dot are hidden by some directory views. They commonly hold rewrite rules, environment settings or access configuration, so you may need to display them during a migration or targeted troubleshooting task.
IN THIS ARTICLE
What you need before you begin
Know the purpose of the file you need and preserve a backup before editing. Hidden does not mean private: a file’s web accessibility depends on server configuration and location, not merely a leading dot.
01 Find hidden configuration files in cPanel File Manager
- Open File Manager and choose its Settings control.
- Enable Show Hidden Files or the equivalent dotfiles option, save, and navigate to the actual domain document root.
- Locate the exact file, such as .htaccess, and check whether a parent directory also contains relevant configuration.
- Download a secure backup before editing or moving it. Keep environment secrets out of public archives and source-control commits.
- After a migration, compare the required hidden files with the source and test the application features that rely on them.
Confirm the expected result
The expected dotfiles should appear in the correct folder, and the application should retain its routing and configuration behaviour. Verify filename spelling because .htaccess.txt is not the same file as .htaccess.
Troubleshoot unexpected results
If the file is still absent, confirm the directory and account instead of creating a generic replacement immediately. A framework may intentionally generate configuration elsewhere. Restore the original if an edit causes a server error.
Should I copy every hidden file to a new server?
Review them individually. Application rewrite rules may be necessary, while server-specific PHP handlers, SSH configuration or environment credentials can need adjustment. Copying them blindly can preserve the wrong server settings or expose access secrets.