Short answer: In cPanel open File Manager, click public_html, then Upload. Turn on Show Hidden Files in Settings to see .htaccess.
Open File Manager
- Log in to cPanel.
- In the Files section, click File Manager.
- On the left, click public_html. This is your main website folder.
Upload files
- Open the folder where the files should go.
- Click Upload in the top bar.
- Drag your file in, or click Select File.
- Wait for the bar to reach 100 percent, then click Go Back.
For many files, zip them on your computer, upload the zip, then right-click it and choose Extract.
Show hidden files
- Click Settings at the top right.
- Tick Show Hidden Files (dotfiles).
- Click Save.
Edit a file safely
- Right-click the file and choose Copy to make a backup copy first.
- Right-click the original and choose Edit.
- Make your change and click Save Changes.
If your site breaks, delete the edit and rename the copy back.
Permissions
Right-click a file, choose Change Permissions. Use 644 for files and 755 for folders.
Questions people ask
Where do my website files go?
The main website goes in the public_html folder. An addon domain has its own folder, set when you created it.
I cannot see .htaccess.
Click Settings at the top right of File Manager and tick Show Hidden Files (dotfiles).
What file permissions should I use?
Usually 644 for files and 755 for folders. Never set 777.
Still stuck? Open a support ticket with your domain name and what you see. Please do not put passwords in the ticket.