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
  • statefairCreating and Hosting Blog Carnivals When it is done properly, creating and organizing your own Blog Carnival is a practice that can be truly rewarding. This is especially true if you are trying to increase your blogging experience, and by proxy, your traffic. The Blog Carnival is one of the finest innovations in the blogosphere......
  • linkPermalink Structure without Dates The structure behind WordPress is generous enough to allow for built in SEO advantages which come with building pages that static web page building and other blogging software cannot afford you. By using WordPress, you already have an advantage over bloggers, but only as long as you are willing to......
  • writingCreating Blog Entries When it comes to running a blog, the owner needs to be able to regularly generate content. This task comes easy to some, but for many, it can occasionally happen that the ideas stop coming. Failing to post for a little while can be detrimental to a blog's traffic, so......
  • Download the Related Websites PluginRelated Websites Welcome to the power of relevant chaos. The Related Websites plugin is the latest to come from the labs of the Blog Traffic Exchange. The Related plugin has been built by a blogger for the benefit of fellow bloggers everywhere. There is no advertising present on member blogs - only......
  • blogitWhat to Look for in Your Blogging Software There are so many choices for blogging software on the market, that it can be very difficult to choose the right one. Every software choice has its advantages and disadvantages which means that you will have to make some decisions on your needs. This will help you to determine which......
Blog Traffic Exchange Related Websites
  • blog traffic exchangeProsper Site Update 12/2007 Verbatim from amf of Prosper... All, Tonight we did a bunch of back-end work and made a couple of changes that you might notice...   Lender overview changes We've received a lot of feedback from lenders that the "Active loan summary" box on the "Your Account > Lending" page is......
  • arthurhillsGolf Glossary Continued 6 Long Irons - These are irons with smaller amounts of loft that will make shots that go farther than the loftier irons. Loose Impediment - This term covers any natural item on the course that is not solidly in place, stuck to the ball, or growing. Some items that could......
  • blog traffic exchangeBecoming an Internet Entrepreneur - Tips and Tricks To get you fast-tracked, we have included a vast selection of tips and tricks to make your online business a success that it deserves to be.1) First of all, choose a domain name that is somehow related to the business you are in. For example, if you are looking......
  • Top 50 Tools For The WordPress AdminTop 50 Tools For The WordPress Admin [/caption] Running your Wordpress blog can feel like a full-time job sometimes. We’ve compiled an A-Z list of more than 50 plugins to help you streamline everything you need to do out back. As with any plugins list, don’t install them all at once! 404 Notifier – Gives you a......
  • blog traffic exchangezyaadakairaada Profile & Portfolio - SocialPicks Here is proof that I have the knowledge and have mentored others as powerful and helped global managers correct their approach on us markets, india and the world again and again. Last heard, JPM revised its estimates downward and called rate cuts from RBI alongwith SocGen and others on moneycontrol......