When creating a new test version of your site you do not want to interfere with your main site. The most common way to do this is to have the test site or program in a subfolder. Once you have completed your new site version, it is time to move it to the main domain area. Below is a guide on how to move your WordPress site from a subfolder to your main domain area.

Step 1: Make backup of your account

First things first. Whenever you begin to move files or make any radical changes, you want to make a backup copy of your account. This is great insurance in case something goes wrong. You can find the instructions on making a backup copy of your cPanel account here. Backup website files in cPanel.

Step 2: Preparing your Wordpress for the move

Before you begin to move the site files, you will want to prepare them for the new address. WordPress uses configuration files with URL paths in them so the process is not as simple as moving files and visiting the site. Check the steps below for how to configure the WordPress site to be ready to use the new URL after you move it.

  1. Log into your WordPress Dashboard.
  2. From the main dashboard, go to Administration -> Settings -> General.
  3. Next, look for the WordPress address (URI): and change it from (example.com/wordpress to example.com)
  4. Lastly, look for the Site Address address (URL): and change it from (example.com/wordpress to example.com)

Step 3: Moving your Wordpress from a subfolder to your main folder

Now that the backup copy of your account has been created and you have properly prpared the files, you can begin physically moving the files to your primary folder. The quick guide here shows you how to do that.

  1. Log into your cPanel admin dashboard.
  2. From the main cpanel area, look for the Files category and then click on the File Manager tool. Ensure you select the checlbox entitled Show Hidden Files.
  3. Once inside the File Manager, you will want to navigate to the folder you have the WordPress site in. For example, a folder named wordpress.
  4. You will see a list of all the wordpress files and folders in the right hand panel. Highlight them all and click on the Copy icon from the menu toolbar across the top of the page.
  5. A popup will appear so you can enter the destination folder. Continuing with our wordpress folder example, it should show as public_html/wordpress. Remove the /wordpress from the destination path so that it simply displays as public_html. Click the Copy Files button.
  6. This will copy the files up to the public_html folder. Use the File Manager to navigate back to the public_html folder. (You can do this by clicking on the Up One Level button from the toolbar across the top of the right hand panel.)
  7. You should now see the same files as you have in your wordpress folder.
  8. You can now delete the old wordpress folder.

Step 4: Log in and finish the URL details

After the move, you want to test the URL and ensure that the permalinks are all set to handle the new address to avoid any site errors.

  1. Log into your WordPress admin dashboard using the new URL. For example (example.com/wp-admin or example.com/wp-login.php)
  2. Go to Administration -> Settings -> Permalinks and ensure the link structure is the same as your new URL.
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Help Center:
Email Address
Optional, but our team may contact you for more information.
Did you find this article helpful?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

News / Announcements

Update to SSL Certificates - Certificate Warnings
1969-12-31 11:00 am EST
Hits: 658

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.