InMotion Hosting Support Center

How do I move my website to a different directory?

Category: Wordpress

2012-12-06 8:52 am EST

Hits: 647
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
<p>Thank you for your question DonIHQRE!</p><p>If your WordPress is a brand new install, you can remove the installation and then reinstall it through Softaculous.</p><h3>Removing Wordpress</h3><ol class="article_list"><li>First, <a href="" target="_blank" title="Click here for more info"><strong><strong>log into your cPanel</strong></strong></a>.</li><li>Go to Software / Services. <strong>Select Softaculous</strong>.</li><li><strong>Click Wordpress</strong>. (Not the Install button)</li><li><strong>Click the red <span style="color: #ff0000;">X</span></strong> by the WordPress install and remove it</li><li><strong>Reinstall WordPress</strong></li></ol><p>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.</p><h3>Moving Wordpress to a different location</h3><ol class="article_list"><li>First, <a href="" target="_blank" title="Click here for more info"><strong>log into your cPanel</strong></a>.</li><li><strong>Click</strong> the <a href="" target="_blank" title="Click here for more info"><strong>File Manager</strong></a> and <strong>Select Go</strong>.</li><li>If you have website files you want to keep in the public_html, move them to a backup folder. The following explains how. <div style="margin-left: 20px;"> <p>a. Navigate to the directory your WordPress was installed in. (The Main domain will be in the public_html) See <a href="" target="_blank" title="Click here for more info"><strong>this article</strong></a> for more information.</p> <p>b. Create a folder called backups.</p> <p>c. Select the files to backup (Except the folder your WordPRess is in) and copy them to the backup folder</p> </div></li><li>Next, navigate to your wordpress directory. <strong>Select al</strong>l the files and <strong>copy them to the public_html</strong>. (Do not move the files as they will still need to be accessible for the next step.)</li><li><a href="" target="_blank">Log into your Wordpress dashboard</a>.</li><li>Navigate to the <strong>Settings</strong>.</li><li>Change the <strong>WordPress Address (URL)</strong> and the <strong>Site Address (URL)</strong> to your domain you moved the files to. (See <a href="" target="_blank">this article</a> for more information on the site url.)</li><li><strong>Click Save changes</strong>.<p class="vital_heading"><strong>Important!</strong> 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.</p></li></ol><p>Now the wordpress will work on your domain you moved your files to. Hope this helps!</p><p>Take Care!<br />James R</p>

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

Like this Question?

Support Center Login

Our Login page has moved. Please click the button below to be redirected to the login page.

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!