How do I move my website to a different directory?

Category: Wordpress

2012-12-06 8:52 am EST

Hits: 604
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.

You must login before you can ask a follow up question.

You must login before you can submit an answer.



5,889 Points
2012-12-06 10:59 am EST

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

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Social Media Login

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?


Ask the Community!

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

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!