How To Move a Wordpress Blog to a Different Directory
Last week I decided to move a blog to a different directory on my web server. Doing so actually turned out to be quite easy thanks to the way the Wordpress developers have set things up! In fact, moving your blog is easier than formatting text in Wordpress!
Please make sure you follow the steps below closely. While it is very fast and easy, you could complicate things for yourself if you do anything out of order!
“Moving the WordPress files from one location on your server to another - changing its URL - requires some special care.
Here are the step-by-step instructions:
1. Create the new location using one of these two options:
1. If you will be moving your WordPress core files to a new directory, create the new directory.
2. If you want to move WordPress to your root directory, make sure all index.php, .htaccess, and other files that might be copied over are backed up and/or moved, and that the root directory is ready for the new WordPress files.
2. Login to your blog.
3. Go to the Administration > Options > General panel.
4. In the box for WordPress address (URI): change the address to the new location of your main WordPress core files.
5. In the box for Blog address (URI): change the address to the new location, which should match the WordPress address (URI).
6. Click Update Options.
7. Logout of your blog.
8. (Do not try to open/view your blog now!)
9. WordPress 2.0 only: Delete the folder wp-content/cache.
10. Move your WordPress core files to the new location. This includes the files found within the original directory, such as http://example.com/wordpress, and all the sub-directories, to the new location.
11. If you are using Permalinks, go to the Administration > Options > Permalinks panel and update your Permalink structure to your .htaccess file, which should be in the same directory as the main index.php file.
12. If you have problems with missing images that you’ve uploaded, you need to change the path to the images on every post directly on your SQL database. For this, follow the instructions on Tamba2’s Tutorial “Moving your weblog inside your PC” (http://www.tamba2.org.uk/wordpress/move3)
It is important that you set the URI locations BEFORE you move the files.
http://codex.wordpress.org/Moving_WordPress“
Wordpress is a very powerful tool. Find out how you can use Wordpress to build online communities!
August 24th, 2008 at 3:18 pm
[...] WebDev Notes. Did You Enjoy this Post? Subscribe to Nutrition Frenzy. It’s Free! « Back Home Posted in [...]
December 11th, 2008 at 8:09 am
Thank you for this information.
August 30th, 2009 at 4:33 pm
How long did it take you to write this blog.
January 10th, 2010 at 3:20 pm
Very cool read! I was wondering how to do this without messing up my install. Thanks!
January 10th, 2010 at 3:20 pm
I should also mention after following your tips! It worked for me!
February 7th, 2010 at 11:37 am
Very, very useful information. I’m going to try it, changing web host providers.
I hope you don’t move your page
I’m bookmarking it…