1. Home
  2. Hosting
  3. cPanel Hosting
  4. How to Move Your WordPress Site from /wp Directory up One Level
  1. Home
  2. Hosting
  3. Problem Solving
  4. How to Move Your WordPress Site from /wp Directory up One Level

How to Move Your WordPress Site from /wp Directory up One Level

Here are the step-by-step instructions on how to move your WordPress website from yourdomainname.com/wp to /yourdomainname.com.

This article assumes you are already logged into your cPanel account, if you do not already know how, please review How To Change Your Password as it will teach you how to log in from your client area.

  1. There are only two things you need to do:
    1. Move your files from /public_html/wp folder up one level to /public_html
    2. Change “site and home” variables in your WordPress options table from /wp to /
  2. To move your WordPress files from /wp you can use File Manager inside of your cPanel Dashboard in the Files Section.

    location of file manager
  3. After clicking on the File Manager icon, you will see your directory file structure. Click on the public_html folder, and then navigate to the wp folder.

    move wp directory up one level
  4. Next, highlight everything in the /wp folder and click the Move button in the navbar as shown in the picture below.

    select everything in wp folder and click on move button
  5. When you click the Move button make sure the path you want to move the files (and directories) to is the /public_html directory as shown below. Then, click on the Move Files button.

    click on move files
  6. Your /public_html/wp directory will then be empty since everything (all the files and folders) has been “moved” to the /public_html directory. Your /public_html/wp directory should now look like this:

    wp directory is now empty
  7. Now, if you go up one directory, to your /public_html directory, it should now look something like the image below. If it does, you can then delete the /public_html/wp directory

    all files have moved to public_html directory
  8. This completes the first part of the process. The second part is to modify your wp_options table, with the correct domain name (minus the /wp). Go back to your main cPanel dashboard and scroll down to the Database Section. In there, click on the phpMyAdmin link.

    location of phpadmin in cpanel
  9. After selecting phpMyAdmin, you will be greeted by the phpMyAdmin dashboard showing all your databases. Look for your the _options table and click on it to expand it.

    wp options table
  10. In this options table, look at the first two rows where your siteurl and home option names are still referring to the /wp location. Correct the entry by deleting the /wp in the option_value column. Click on the corresponding go button located at the bottom right of the page to save your change.

    delete wp in the siteurl and home option names
  11. The correct entry should look similar to this:

    wp in the siteurl and home option names deleted
  12. The final step is to test y Does your WordPress site now load from the /public_html/ directory, instead of /wp? If it does, congratulations. If not, feel free to log in to your OrangeWebsite Client Portal and open a support ticket for assistance.

Not a customer? Did you like this knowledgebase article?
If you did like this knowledgebase article and are not currently a customer but are looking for a trusted offshore host, feel free to browse what we have to offer over at OrangeWebsite. We have products that fit everyone from individuals to small, medium, and big-sized businesses. We just might be what you are looking for.

Updated on July 29, 2024
Was this article helpful?

Related Articles