Your Host’s File Manager: Find, Edit and Restore Files
Use the File Manager in your browser to find your site's files, show hidden ones, make quick edits safely and undo mistakes.
// Where things live public_html/ ← your main site public_html/.htaccess ← hidden settings file public_html/wp-config.php addon-site.com/ ← other domains
🧰 What you need first
- Access to your control panel
🎯 What you'll learn
- Find your website's folder
- See hidden files like .htaccess
- Edit a file safely, with a way back
🛠 Tools needed
- Your hosting control panel
A file explorer in your browser
The File Manager works like the file explorer on your computer, but it shows the files on your server. It's perfect for quick edits when you don't have an SFTP app handy.
Find your site
- In cPanel, open File Manager.
- Open public_html. That's your main domain's website.
- Other domains and subdomains usually have their own folders, either inside or next to public_html.
Show hidden files
Files that start with a dot, like .htaccess, are hidden by default.
- Click Settings at the top right of File Manager.
- Tick Show Hidden Files (dotfiles) and save.
.htaccess
A settings file that controls redirects, HTTPS and other web server rules. One typo can take your whole site down.
Edit safely
- Right-click the file and choose Copy. Name the copy something like
wp-config-backup.php. - Right-click the original and choose Edit.
- Make your change and click Save Changes.
- Reload your site. If it breaks, rename your copy back to the original name.
Warning: Delete your backup copy once you're done, especially for files with passwords like wp-config.php. Never leave backup copies of config files on a live site.
Useful extras
- Upload a .zip, then right-click it and choose Extract. Much faster than uploading many separate files.
- Compress a folder to download it as one file.
- Permissions: files are usually
644, folders755. - Trash: deleted files may go to a .trash folder. Empty it to free up space.
Common problems
My site shows a 500 error after an edit
Why: The file has a typo, often in .htaccess or a PHP file.
Fix: Put your backup copy back, then try the edit again carefully.
I can't see .htaccess
Why: Hidden files are turned off, or the file doesn't exist yet.
Fix: Turn on Show Hidden Files. WordPress creates .htaccess when you save Settings → Permalinks.
Key takeaways
Keep going
- Move larger sets of files: Uploading Files with SFTP
- Check your PHP settings: PHP Settings Worth Checking
Enjoyed this guide?
Support free learning at mC0de.
