How do I move my website to a different directory?

  • Answered
Another newbie question. When I set up WordPress, I installed it into a directory because I thought it needed to be in a subdirectory in the domain. Now the website can only be accessed by rather than I tried to find the files in the file manager hierarchy so that I could transfer them to the directory, but I couldn't find any of the html files. So my question is how do I change the program so that the website can be accessed at rather than Thank you.

Thank you for your question DonIHQRE!

If your WordPress is a brand new install, you can remove the installation and then reinstall it through Softaculous.

Removing Wordpress

  1. First, log into your cPanel.
  2. Go to Software / Services. Select Softaculous.
  3. Click Wordpress. (Not the Install button)
  4. Click the red X by the WordPress install and remove it
  5. Reinstall WordPress

If you built the site already and do not want to remove the WordPress install, you can move the files through your cPanel and set the site url in the Wordpress dashboard.

Moving Wordpress to a different location

  1. First, log into your cPanel.
  2. Click the File Manager and Select Go.
  3. If you have website files you want to keep in the public_html, move them to a backup folder. The following explains how.

    a. Navigate to the directory your WordPress was installed in. (The Main domain will be in the public_html) See this article for more information.

    b. Create a folder called backups.

    c. Select the files to backup (Except the folder your WordPRess is in) and copy them to the backup folder

  4. Next, navigate to your wordpress directory. Select all the files and copy them to the public_html. (Do not move the files as they will still need to be accessible for the next step.)
  5. Log into your Wordpress dashboard.
  6. Navigate to the Settings.
  7. Change the WordPress Address (URL) and the Site Address (URL) to your domain you moved the files to. (See this article for more information on the site url.)
  8. Click Save changes.

    Important! If there are any hard coded links or references to the old location, the site will have broken links. If this is the case, you may need to change the urls in the database and in your dashboard posts.

Now the wordpress will work on your domain you moved your files to. Hope this helps!

Take Care!
James R