How do I edit a file in cPanel? Print

  • 0

You can edit text files directly in cPanel without downloading them:

  1. Log in to cPanel and open File Manager.
  2. Browse to the file (for example, public_html/index.html or .htaccess).
  3. Right-click the file and choose Edit (plain text) or Code Edit (with syntax highlighting).
  4. Make your changes, then click Save Changes at the top right.

Tips:

  • If you do not see hidden files like .htaccess, enable Show Hidden Files in File Manager Settings.
  • Before editing important files, right-click and Copy to make a backup.
  • If a change breaks your site, restore the backup or undo the edit.

For larger edits, downloading via SFTP and using a desktop code editor can be more comfortable, then re-upload when done.


Was this answer helpful?

« Back