WHAT'S NEW
Web Hosting & Server Basics · GuideGuides › Web Hosting & Server Basics

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.

📶 Beginner⏱ 7 min🗓 Updated November 17, 2026❤ 0
files.txt
// Where things live
public_html/          ← your main site
public_html/.htaccess ← hidden settings file
public_html/wp-config.php
addon-site.com/       ← other domains
// Before you start

🧰 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
01 / Start here

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.

02 / Step 1

Find your site

  1. In cPanel, open File Manager.
  2. Open public_html. That's your main domain's website.
  3. Other domains and subdomains usually have their own folders, either inside or next to public_html.
03 / Step 2

Show hidden files

Files that start with a dot, like .htaccess, are hidden by default.

  1. Click Settings at the top right of File Manager.
  2. 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.

04 / Step 3

Edit safely

  1. Right-click the file and choose Copy. Name the copy something like wp-config-backup.php.
  2. Right-click the original and choose Edit.
  3. Make your change and click Save Changes.
  4. 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.

05 / Step 4

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, folders 755.
  • Trash: deleted files may go to a .trash folder. Empty it to free up space.
06 / Help

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.

// Recap

Key takeaways

Your main site lives in public_html
Turn on Show Hidden Files to see .htaccess
Copy the file before you edit it
Use Extract for zip files instead of uploading hundreds of files
// What's next

Keep going

Enjoyed this guide?

Support free learning at mC0de.

PIX0
</> {} JS 01
0101 </> CSS JS HTML PIX0 const {} 1010 async mC0de function return 0101 <div> 1010 PIX0 CSS JS HTML const {} 0101 mC0de
PIX0 // WORLD OF CODE
PIX0 IS PREPARING SOMETHING AWESOME FOR YOU 0%