In this guide, you will learn how to move a WordPress website, for example example.com, from the public_html directory into a new custom directory under your home folder.
Steps to Move WordPress Files Using cPanel File Manager
Step 1: Access cPanel and Open File Manager
- Log in to your Ecenica Dashboard
- Click Manage next your Ecenica hosting service.
- Click File Manager .
Step 2: Create the New Directory
- Once inside File Manager, click the +Folder button at the top left.
- Name your new folder. For this guide, let’s call it example.com (or any other name you’d like for the folder).
Step 3: Select and Move WordPress Files
- Open to the public_html directory in File Manager
- In the right-hand pane, click Select All to select all files and folders.
- Move the Files:
- With all the files selected, click on the Move button in the top toolbar.
- In the dialog box that appears, change the file path from /public_html to the directory you created earlier. For example, /example.com
- Click Move Files to proceed.
Step 4: Test Your Website
After moving the files and updating the configuration:
- Visit your website (example.com) and check that everything is working correctly.
- Clear your browser cache if necessary.
This will move all the WordPress files from the public_html directory to the new directory you created.