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…
- “Golf” in the domain name
- All domain words are highly relevant
- Direct golf product tie in
- It makes sense. What am I? A golf ball driver!
- The double entendre between the products and the persona.

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
Related Posts -
New Domain to Google Page Rank 5 in One Month Google said Merry Christmas and Happy New Year to Blog Traffic Exchange with the final toolbar pagerank update of 2008 according to Matt Cutts. This was the first page rank update since launching the domain in late November with this blog. So in one month how much page rank can...... -
8 Wordpress Blog Theme Design Considerations Most blogging platforms offer a wide variety of different themes to chose from, and most can be altered and edited to suit your needs, or left alone exactly as they are. Some themes are plain and dull while others are colorful, modern and inspiring. There are thousands of themes out...... -
6 + 1 Steps for How to Increase Blog Traffic Having access to the right tips and hints for how to increase blog traffic can really come in handy. The more tips and tools that you have in your arsenal for learning how to increase blog traffic; the better off you will be when it comes to building up a...... -
Joining 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....... -
Permalink 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......
Related Websites -
These Wordpress Plugins May help Wordpress Plugins You May Need Image by teddy-rised via Flickr I have been asked many different times from new bloggers what plugins they should use. I think a big part of it comes down to personal taste. While there are some essentials many of them are just add-on plugins...... -
Ways To Generate Meta Tags Very Enhance Ones Web Site In this short article, I am going to teach you basic principles about Meta Tags so their functions. Discovering how to create Meta Tags is crucial for your companies web ranking. Magic Seo Bot Gets a primary page listing on 100s search engines? No PPC Free Trial http://www.MagicSeoBot.com What Are...... -
Your WordPress Blog Interaction with SEO Optimization for search engines is something that's important to anyone interested in becoming a successful WordPress blogger. However, there's one thing that you should understand when it comes optimizing your WordPress blog for the search engines and that is accuracy. It's nearly impossible to tell what's working without being accurate...... -
Travel Guard With over 20 years of industry experience, Travel Guard is America's leading travel insurance plan provider. We specialize in providing innovative travel insurance, assistance & emergency travel service plans for millions of travelers & thousands of companies throughout the world. Our industry-leading, comprehensive travel insurance plans are distributed by more...... -
Fantasy Link Exchange Fantasy link exchange is when you name (with links) the 35 blogs with which you would like to exchange blogroll links. In an ideal world they find out about your desire from Technorati or PFBlogs.org or sheer luck and consummate the exchange. The Simple Dollar I Will Teach You To Be......
- Srizon Golf Balls Golf
- Personalized Golf Balls Golf
- Order of the Arrow Patches Badges, Patches Boy Scouts Fraternal Groups Historical Memorabilia Collectibles
- New Golf Balls Golf
- Pro V1x Titleist New Golf Balls Golf
Categories:
Blog Tips, Blogging, Content Ideas, Domain/Host, Platform, SEO, WordPress
Tags:

10 comments ↓
What is the reason for changing the folder where the contents resides? Wouldn’t this work without doing that?
I changed folders so that I could have a clean ht access file in the old directory. To me this made for a cleaner and more maintainable final product.
For some reason that didn’t work for me. I actually ended up using two folders. I had the old site in the old folder and then set the new site in a new folder. I then used a 301 to redirect in the .htaccess from the old site to the new site. The following command will preserve the path so if you type oldsite.com/dir/file.ext it will 301 redirect to newsite.com/dir/file.ext.
RedirectMatch 301 ^/?(.*)$ http://newsite.com/$1
Hello! I just moved my blog following the steps listed in your post. That was easy! Thanks.
However, I don’t understand this part:
“You are also going to need to login to your WP Administration section because the authentication cookie will become invalid when you change domains.”
What should I do exactly? where are my authentification cookie in my WP Admin section?
Thanks lot!
@Patrice
I was saying in a very wordy way. That wordpress was going to ask for you user/pass to gain access to the admin section.
Glad it helped you!
Thank’s for your information.
hey… this is great! but i do have 1 question:
where do i “run SQL queries” from?
i was looking around in cpanel, and couldn’t find where i could add queries, only new databases.
thanks a bunch
- will
Thanks for directing me to this post Kevin
this was really helpful
I was just trying to figure a way to do this, glad I found this post.
Well kevin i like your article and there is something else dose mod_rewrite vary according to servers.want some info about this.
Leave a Comment