How to move your wordpress blog

There are lots of webpages where people explain to you how to move your wordpress blog to another domain, but most of those solutions aren’t complete or they just doesn’t work.
That’s why I’m going to explain you how to move your wordpress blog, I’ve tested this solution personally so don’t be afraid, this will work.

So if you want to move your wordpress blog to another domain or subdomain, follow the instructions below.

5 steps to move your WordPress blog

  1. First you have to make a back-up of your wordpress database, you can do that by pressing export in your PHPMyAdmin and export it to a file.
  2. The next thing you have to do is exporting all your wordpress files to the new domain and import the exported wordpress database file in the new PHPMyAdmin.
  3. Run the SQL queries shown below. So, now you moved the database and webfiles to the new location, you have to change some things in the database. WordPress saves your domain on several places in their database. So you have to change those values, you can do this by running the sql queries as shown below.
UPDATE wp_posts SET post_content = REPLACE(post_content,"www.old-domain.com","www.new-domain.com");
UPDATE wp_posts SET guid = REPLACE(guid,"www.old-domain.com","www.new-domain.com");
UPDATE wp_options SET option_value = REPLACE(option_value,"www.old-domain.com","www.new-domain.com");
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value,"www.old-domain.com","www.new-domain.com");

So, now you’re done with moving your wordpress blog. If you still have problems with visiting some webpages on your blog, you have to do the following:
- Log in the wordpress admin panel of your wordpress blog.
- Go to Settings.
- Now just click on Save Changes.

If you still have problems you can ask me by posting a comment below, ofcourse.
I hope you find this post usefull and it helped you like it helped me.
If you find this post usefull, share it by facebook, twitter and/or buzz and help other people with moving there wordpress blog!

UPDATE: An extra tip: You can also export all your content (pages, posts, comments etc.), using the export tool (Menu -> Tools -> Export). Maybe that’s easier for the people who don’t know how to use the above queries. After that you only have to place a new WordPress installation on the new server or domain, import your theme, import your content and installing the plug-ins you used before. Good luck!

781 days ago by in Wordpress | You can follow any responses to this entry through the RSS feed. You can leave a response, or trackback from your own site.
About the

Erik is a graduate IT manager who spent years involved with the web programming both front-end and back-end, as a hobby. Since 2008 he knew he didn't want to start a job in the IT business, but more in the web business. So since the end of summer 2010 he studies digital communications at a university in Utrecht, which is called "Hogeschool Utrecht". Since the summer of 2011 he started his own company, where he works part-time after school. The company is called "Only Media" and is specialized in creating websites with Wordpress, front-end programming (also html5, css3 and jQuery) and back-end programming like PHP in combination with or without SQL.