How to Relocate your Wordpress Blog to a New Domain Name

Making the decision to move my blog from http://www.courseladder.com to http://www.golfballdriver.com was a big one, and a good one, and it taught me a lot about learning how to relocate your Wordpress blog to a new domain name under the same hosting provider. Course Ladder suited me for a while, but from an SEO standpoint it was not a good domain name for me to stick with over a long term and I am glad for the change.

Golf Ball Driver is better than Course Ladder because…

  1. “Golf” in the domain name
  2. All domain words are highly relevant
  3. Direct golf product tie in
  4. It makes sense. What am I? A golf ball driver!
  5. The double entendre between the products and the persona.

gbd

What You Need to Do:

The first thing that you want to do is to create a new add on domain for the new domain name.

The next step in the process is to copy the entire contents of the old domain folder, which includes your entire Wordpress blog, into the brand new domain folder within the same hosting area.

Next, there are a couple of SQL statements that you need to run:

* First, to update your WordPress options with the new location of your blog, the following SQL command needs to be put in:

UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';

Next, you are going to need to fix the URLs of your posts and pages on WordPress. The URL values are stored as absolute URLs rather than as relative URLs, so you need to use the following SQL query to change them.

UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');

If you have linked internally at any point within your blog posts or your pages using absolute URLs, then this links are going to be pointing to the wrong locations after you change the location of your blog. You need to use the following SQL commands in order to fix all of the internal linking in all of your Wordpress posts and pages.

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');

Once you have put all of these SQL queries into action, the next step is to browse through as much of your WordPress blog as you can in order to make sure that everything is in good working order. You are also going to need to login to your WP Administration section because the authentication cookie will become invalid when you change domains.

Now you can delete the old folder contents so that your blog is not appearing in two different places.

In order to 301 redirect all old links from the old domain to the new domain, place a single file .htaccess into the now empty folder. You want to be sure to 301 redirect else you will permanently lose any hard earned links you have developed. Here is what the file should contain:


RewriteEngine on
RewriteCond %{HTTP_HOST} ^.old-domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.old-domain.com
RewriteRule ^/?(.*)$ "http://www.new-domain.com/$1" [R=301,L]

Finally, update your Wordpress blog to have the new blog name in your title.

The process is relatively simple once you have a feel for what needs to be accomplished. Above all else, it is vital that you avoid upsetting your linking structure in the process. Make sure that all of your links are still valid and working after you make the big move, and your blog should be just fine, and more importantly, better off with an improved domain name.

Originally posted 2009-02-05 09:45:03. Republished by Blog Post Promoter

Blog Traffic Exchange Related Posts
  • OPP OptionsOld Post Promoter "You down with OPP, yeah you know me!" The OPP, or Old Post Promoter, is a plugin designed for Wordpress by the Blog Traffic Exchange. The primary function of the plugin is its capability to promote older blog posts by reviving them and returning them to the front page and......
  • longexposureIncrease Traffic to Blog, pt1 This is part one in a three part series dedicated to increasing traffic to your blog in a number of different ways. Now that you have your blog set up and you are beginning to post useful information in its pages, the next step is to start attracting useful readers......
  • Kevin GillettFinovate Startup 2009 Live Twitter I am attending Finovate Startup 2009. It is an action packed 1 day format which I belive will lend itself perfectly to a live twitter. Stay tuned it should be an amazing day. http://twitter.com/BlogTrafficExch In the break I have scheduled some talks with SimplFi, Mint, and Calendar Budget. I am......
  • carnivalJoining a Blog Carnival Joining a blog carnival is capable of allowing you to improve your blog. Have you ever heard of what a blog carnival is all about? Let us go into what it takes for you to join a blog carnival including what the benefits are for participating in a blog carnival.......
  • blogcarnivalHow to Increase Blog Traffic with Blog Carnivals One of the easiest things that you can do to build traffic is to submit your content to blog carnivals if you want to learn how to increase blog traffic. In as few as four simple steps, you can bring new visitors to your blog and you can build excellent,......
Blog Traffic Exchange Related Websites
  • blog traffic exchangeRemote Blog or Self Hosted Blog? by: Len Hutton So you’ve decided to blog, but aren’t sure whether you should host the blog yourself or sign up for a free service like blogger.com. It’s a dilemma that many bloggers face. There are pros and cons to both, which makes the decision difficult for many. Neither is......
  • blog traffic exchangeHow to Gain #1 Listings in Google and Yahoo Within 24 Hours Doing Press Release Marketing Let me tell you a secret - - Press Releases work and can get massive traffic to your website. And they get you noticed on the net and off the net and can lead to many new open doors to market your products. Let me explain how.I have written......
  • blog traffic exchangewordpress help? I have wordpress site blog site is there way or any plugin that I can install which will auto post on my site from other site. example my site is #1 & other someone's site is #2 if #2 make somepost on their site, that script will automatcally post on......
  • Be About ItMy Three Word Memoir: Be About It Be About It It's pretty simple. Be About It. Don't talk about it. That's my three word memoir if I had to have one right this second. So what's the point of this? Well, Michael Kwan of Beyond the Rhetoric tagged me with his Six Word Memoir post. By tagging......
  • Put Paypal Donation Code to Your Blog/SiteHow to: Put Paypal Donation Code to Your Blogspot Do you put this box in your blog/site? Well many of us want put this code on their own blog/site like those popular sites but they don't how. Well i am very glad to teach you and going tell you how. In order to receive donations, you need a......
Online Stores