Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

How to rename files and folders in cPanel

Change the name of a file or folder in your hosting account using File Manager.

WHM2 min read12 steps5 screenshots

What is File Manager?

cPanel is the control panel you use to manage your hosting. File Manager is a tool inside it. It works like the Files app on a computer. You can see, move, copy and rename the files that make up your website.

Warning: Renaming files used by your website can break it. For example, if you rename index.php, visitors may see an error. Take a backup first if you are not sure.

Steps

  1. Log in to cPanel. Your welcome email or the client area at https://secure.hostvento.com/clientarea.php shows how to reach it.
  2. In the Files section, click File Manager.
    Screenshot: In the Files section, click File Manager .
  3. Open the folder that holds your item. Website files are usually in public_html.
  4. Click once on the file or folder to select it.
  5. Click Rename in the top toolbar. You can also right-click the item and choose Rename.
    Screenshot: Click Rename in the top toolbar. You can also right-click the item and choose Rename .
  6. Type the new name in the box.
  7. Click Rename File to save.
    Screenshot: Click Rename File to save.
    Screenshot: Click Rename File to save.
  8. Check that the new name shows in the list.

Name rules to remember

  • Names are case sensitive. Photo.jpg and photo.jpg are two different files.
  • Do not use spaces. Use dashes or underscores, like my-photo.jpg.
  • Keep the file ending, such as .html or .jpg. It tells the computer what kind of file it is.
  • Avoid special characters such as & and ?.

If your site breaks after renaming

  1. Go back to File Manager.
  2. Select the item you renamed.
  3. Click Rename and type the old name again.
  4. Reload your website.

If a web page links to a renamed image or file, the link will break too. Update the link on the page, or keep the old name.

Tip: To change many names at once, a plugin or a script may be easier. Ask Hostvento support if you need help.

Quick recap

  • Open File Manager in cPanel.
  • Select the item and click Rename.
    Screenshot: Select the item and click Rename .
  • Type the new name and save.
  • Do not rename files your site needs unless you update links.
  • You can undo by renaming back.