cPanel File Manager: move and rename files

Moving helps you organise files: move a site from a subfolder to the domain root, put old files into an archive folder, or take a file out of public_html so it cannot be opened from the internet. Renaming fixes a file name or switches a file off for a while.

Move

  1. Select files or folders (several - click with Ctrl).
  2. Click "Move".
  3. Enter the destination path from the home folder, for example /public_html/old.
  4. Click "Move Files".
Moving a file
Moving a file

The path starts at your home folder: /public_html is the primary domain folder, /example.org is an addon domain folder, / is the home folder itself. Create the destination folder beforehand with the "Folder" button on the toolbar.

You can also drag a file and drop it on a folder in the tree on the left.

Moving a site from a subfolder to the domain root

  1. Turn on hidden files so you do not leave .htaccess behind: hidden files.
  2. Open the subfolder, for example public_html/new.
  3. Click "Select All", then "Move", and enter /public_html.

If the site runs WordPress or another CMS, change the site address in its settings after the move - otherwise links will still point to the old subfolder.

Rename

  1. Select a file.
  2. Click "Rename".
  3. Enter the new name and click "Rename File".
Renaming a file
Renaming a file

Renaming changes the address of the file on the site: links to the old name stop working. To switch a file off for a while, add .off to its name, for example index.html.off.

File names on the hosting are case-sensitive: Logo.png and logo.png are different files. If an image does not open, check the case in the name and in the link.

Common mistakes

  • The destination folder was not checked first - a file with the same name there can be lost.
  • The public_html folder itself was moved - the primary domain site stops opening. Move its contents, not the folder.
  • CMS plugin or upload folders were moved - the CMS looks for them at the old path, so images and pages stop opening.
Questions and answers
Yes, enter the path to that domain's folder, for example /example.org.
Move it to the home folder (path /). Files outside public_html and the domain folders cannot be opened from the internet.
The file address changed. Fix the link on the site or rename it back, keeping the letter case in mind.