WordPress: Move Site to New Directory
This article explains how to move your WordPress website from one folder within your hosting account to another.
- What You Need
- Access the File Manager
- Copy Your Files
- Update The URL (Optional)
- How do I find the correct URL?
Before you move your WordPress site, there are a few things you need to know:
- The username and password to your Bluehost account
- A basic understanding of what files and folders are
- The current location (folder and URL) of your WordPress site
- The destination (folder and URL) of your WordPress site
- The username and password to your WordPress site (optional)
The File Manager on your account can be used to move or copy files on your server. You'll use it to move your WordPress files. To begin, you will need to access the Bluehost Control Panel.
- Click on the Advanced tab from the side navigation menu to the left.
- Click File Manager from the submenu or under the Files section.
- Click the Hosting tab from the navigation menu at the top of your screen.
- Then click the cPanel link under hosting.
- Scroll down to the Files section and click on the File Manager icon.
- Next, you may be asked to select a directory to open. If so, select Web Root and check the box to Show Hidden Files, then click Submit to proceed.
The File Manager will load and show you the files and directories in your account.
Now that you are in the File Manager, you need to locate your files and copy them to the destination directory. The location of your files may vary, but your main site will be in the public_html directory. Other sites usually have their folders inside the public_html directory.
- In the File Manager, navigate to the directory containing your WordPress site.
- Click the Select All icon.
- Once the files have been selected, click the Copy at the top of the screen.
- In the Copy popup, type the destination folder into the box next to the home icon.
- Click Copy File(s).
There isn't a progress bar to indicate if the copy was successful, so you'll need to go to the destination folder to confirm whether or not your files are there.
Moving your website from one folder to another will change your URL unless you have adjusted the domain assignments to accommodate your account's change. If you want to know more about domain assignments, please, see Assigning an Addon or Parked Domain.
Finding the correct URL isn't hard. A URL consists of a domain such as www.example.com. The domain is assigned to a folder in your account like public_html. When someone types "www.example.com" into the browser, the website will load from the public_html folder. If there is a folder inside public_html containing a website, the URL would be "www.example.com/folder-name," where folder-name is the name of the specific folder inside public_html.
For example, the domain example.com is assigned to public_html. If you move the WordPress site from public_html to the public_html/blog folder, the WordPress site's new URL would be http://www.example.com/blog/.
Follow these steps to update your WordPress URL:
- Log in to your WordPress site using the old URL.
- Hover over the Settings menu on the left side and click General.
- Under General Settings, enter the new URL for both the WordPress Address URL and Site Address (URL).
- Click the Save Changes button once finished.
Once you click the Save Changes button, you will be redirected from WordPress to your website at the new location. Go ahead and test the site to make sure everything is working. If your images are no longer displaying properly, you may need to update more URLs in the database. The Velvet Blues plugin can help you update image URLs, if necessary.