Moving WordPress blog within your web site

You may need to move your WordPress blog from one directory to another directory within your web site. You will need to take certain things while changing your blog directory. Following are the step by step instruction to move your blog:

1. Create a new location using one of these two options:

1.1. If you are moving your WordPress core files to a new directory, create the new directory.
1.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 admin panel.
3. Go to the Administration > Settings > 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 Save Settings.
7. (Do not try to open/view your blog now!)
8. Delete the folder wp-content/cache. This applies to WordPress 2.0 only.
9. Move your WordPress core files to the new location. This includes the files found within the original directory, such as http://yourwebsite.com/wordpress, and all the sub-directories, to the new location.
10. If you are using Permalinks, go to the Administration > Settings > Permalinks panel and update your Permalink structure to your .htaccess file, which should be in the same directory as the main index.php file.
11. 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.
12. You must also check and edit ‘store uploads folder’ under Settings-Miscellaneous or all your new uploads will continue to go into the old folder.
13. Existing image/media links uploaded media will refer to the old folder and must be updated with the new location.

It is important that you set the URI locations BEFORE you move the files.

WordPress Hosting – 1 Click installation and Upgrade

Leave a Reply