How to move WordPress to another folder
This is a short article on how to move your Wordpress from one location to another within your hosting account.
First, you have to make a new empty folder (e.g. blog) on your hosting account and name it the way you want. You can do that using the Pixie control panel, an FTP client or through SSH.
Next, log in to your Dashboard and go to Settings>General. There in the fields for WordPress address (URL) and Site address (URL) type the address for your new folder (e.g. http://yourdomain.com/blog), and click on Save Changes.
After that, move the contents from your old Wordpress folder to the new one. A convenient way to do this is by using your favorite FTP client. Once you're done with that your Wordpress site should be accessible at the new URL.
It's important to remember that you have to change the URLs from the admin panel first and then move the Wordpress files and folders to the new location.
If you have forgotten to do it and have moved the files before changing the addresses, there is an easy way to fix this. You have to open the database used by Wordpress. You can do that through phpMyAdmin, from the Databases section of the Pixie control panel. In the Wordpress database find the table wp_options (the prefix might be different) and open it. Then under the column option_name find the ones named siteurl and home, open them and edit the URL address so that it points to the new location of your Wordpress files (e.g. http://yourdomain/blog). Now you should be able to open your Wordpress blog using the new URL.
For more detailed information on this read the Change WordPress Location tutorial.
Was this answer helpful?
- How to configure the reading settings in WordPress
- How to remove "Proudly powered by WordPress" from the footer in WordPress
- How to store your WordPress in a subfolder but make the site accessible from the root
- How to configure custom date and time formats in WordPress
- How to install WordPress themes