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

How to Rename a File or Folder in DirectAdmin

You can rename any file or folder with the DirectAdmin File Manager. No special tools are needed.

DirectAdmin2 min read8 steps5 screenshots

What is the File Manager?

The File Manager is a tool in your hosting panel. It shows the files of your website in a window, like the folders on your own computer. You can add, move, edit and rename files there.

Warning before you rename

Websites find files by their exact names. If you rename a file that your site uses, the site may break. For example, renaming index.php or a WordPress plugin folder can cause errors. Take a backup first. Also note the old name so you can change it back.

Names are case sensitive on a hosting server. Logo.png and logo.png are different files.

Steps

  1. Log in to DirectAdmin.
  2. Click File Manager under System Info and Files.
    Screenshot: Click File Manager under System Info and Files.
  3. Open the folder that holds your file. Your main site is usually in domains/yourdomain.com/public_html.
  4. Find the file or folder you want to change.
  5. Right-click it, or select it and use the toolbar, then click Rename.
    Screenshot: Right-click it, or select it and use the toolbar, then click Rename .
    Screenshot: Right-click it, or select it and use the toolbar, then click Rename .
    Screenshot: Right-click it, or select it and use the toolbar, then click Rename .
  6. Type the new name in the box.
    Screenshot: Type the new name in the box.
  7. Click Rename or Save to confirm.
  8. Check that the list now shows the new name.

Tips for good names

  • Use small letters, numbers, dashes and underscores.
  • Avoid spaces and special marks like & or %.
  • Keep the file ending, such as .jpg or .php. If you remove it, the file may stop working.

Rename a whole folder

You can do the same with a folder. Everything inside it stays. But any link or setting that points to the old folder name will break. After renaming, update those places.

Rename many files at once

The File Manager renames one file at a time. For many files, download them, rename them on your computer, and upload them again. Or ask Hostvento support whether command line access is part of your plan.

Tip: To disable a file for a while without deleting it, rename it by adding -old at the end. You can rename it back later.

Quick recap

  • Use File Manager, select the item, and click Rename.
  • Back up first, because websites depend on exact names.
  • Keep file endings and avoid spaces.
  • Update links or settings that used the old name.