Moving a website from a subdirectory to the domain root changes where its files are served. In cPanel, File Manager can move those files, but a content management system may also need its URLs, paths and rewrite settings updated.

Prepare the move

  1. Back up the website files and database.
  2. Confirm the domain’s actual document root under Domains. The main domain often uses public_html, but that is not universal.
  3. Identify the complete source directory for the website.
  4. Check the destination for existing files and plan how to preserve them.
  5. Review the application’s instructions for changing its installation path and public URL.

Finding an index.php or index.html file alone does not prove that a folder contains the whole application.

Move the files

  1. Open Files > File Manager.
  2. In Settings, enable Show Hidden Files (dotfiles).
  3. Open the confirmed source directory.
  4. Select the site’s files and directories, including any required hidden files.
  5. Click Move.
  6. Enter the full destination path for the domain’s actual document root.
  7. Review collisions before confirming. Do not overwrite an existing site unintentionally.
  8. Confirm the move and check that the files are in the intended destination.

Update application settings

Follow the application’s supported procedure for its URL and path changes. For WordPress, review the official migration instructions before moving; changing files alone does not update WordPress Address, Site Address or stored content links.

Avoid a raw database text replacement that can corrupt serialised application data. Check rewrite rules, cache paths, scheduled tasks and links to uploaded files.

Test the new location

Test the domain root, administrator login, internal pages, media and forms. Redirect old subdirectory URLs where appropriate, taking care not to redirect a path that the new site still requires.

Keep the backup and rollback plan until the new location is verified.