InMotion Hosting Support Center

How do I move my website to a different directory?

Category: Wordpress

DonIHQRE
Asked:
2012-12-06 8:52 am EST

Hits: 628
Another newbie question. When I set up WordPress, I installed it into a directory ihqre.org/web because I thought it needed to be in a subdirectory in the domain. Now the website can only be accessed by www.ihqre.org/web rather than www.ihqre.org. I tried to find the files in the file manager hierarchy so that I could transfer them to the www.ihqre.org 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 www.ihqre.org rather than www.ihqre.org/web? Thank you.

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

You must login before you can submit an answer.

OTHER ANSWERS

0

jamesr
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="http://www.inmotionhosting.com/support/edu/cpanel/getting-started-cpanel/how-to-log-into-cpanel" 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="http://www.inmotionhosting.com/support/edu/cpanel/getting-started-cpanel/how-to-log-into-cpanel" target="_blank" title="Click here for more info"><strong>log into your cPanel</strong></a>.</li><li><strong>Click</strong> the <a href="http://www.inmotionhosting.com/support/edu/cpanel/cpanel-file-manager/using-file-manager-in-cpanel" 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="http://www.inmotionhosting.com/support/website/getting-started-guides/where-to-upload-files" 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="http://www.inmotionhosting.com/support/edu/wordpress/wordpress-introduction/logging-into-wordpress-dashboard" 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="http://www.inmotionhosting.com/support/website/wordpress/wordpress-changing-the-site-url-and-home-settings" 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?

Need more Help?

Search

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: support@InMotionHosting.com
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!