Moving Your WordPress Blog to a New Directory

  1. Back up all the files from you old blog directory.
  2. Copy them to your new location.
  3. Go to the Settings General and change the location of the blog (‘WordPress address (URI):’ and ‘Blog address (URI):’).
  4. If you move wordpress from root directory to sub-directory(http://YOURBLOG.com/blog/), copy the index.php and .htaccess files from the WordPress directory into the root directory of your site (Blog address).
  5. Open your root directory’s index.php file in a text editor.
  6. If you moving to root directory change the line to: require(‘./wp-blog-header.php’); If your moving to another directory change the line to: require(‘./YOURDIRECTORY/wp-blog-header.php’); Your must using your directory name.
  7. If you’re using PermaLinks, make sure your .htaccess file is updated with any necessary changes (eg RewriteBase /blog/ and to RewriteBase / if your use root directory).
  8. Logout of the blog, and login at the new location.
  9. Delete the old directory.
This entry was posted in Wordpress and tagged , , . Bookmark the permalink.

2 Responses to Moving Your WordPress Blog to a New Directory

  1. Kelly Brown says:

    Great post! I’ll subscribe right now wth my feedreader software!

  2. oliver52 says:

    great explenation !

Leave a Reply

Your email address will not be published. Required fields are marked *