I have been meaning to write this post for a while and am sorry for the delay. I know a few of you were thinking of moving to a new domain name at some point soon.
As most of you know, I recently took over this blog from the much missed Benjamin Patton. During the move we decided that it would be a good idea to also move the blog over to a more suitable domain.
So whilst moving hosts I also had to move the domain name from http://benjaminpatton.com to http://realbloggingtips.com. Two other domains also had 301 redirects pointing to http://benjaminpatton.com.
I had never actually changed a domain name before so I had a little learning to do. However in the end it really was not very hard and if you follow my steps I can’t se it being hard for you either.
This guide assumes you are using cpanel. However if you are not just ask me what you need to know and I will help you with the move.
If you have read my post that dealt solely with moving a wordpress blog “8 Easy Steps to Move A Wordpress Blog” then will be familiar with most of the processes needed.
Backing Up The Files To Move
1. Backup Your Files.
Either use the backup option in cpanel to make a backup of your home directory or simply copy your home directory to a safe place using ftp access.
2. Backup Your Database.
On Your cpanel dashboard you will see an icon called “MySQL databases” Click this icon and find the link for “phpMyAdmin“. The screen that will load can e seen FIG 1 below.
Now on the left hand side select the database associated with your wordpress install. In many cases this will be “username_wrdp1″ or similar. Click the export button in the main window. Then make sure you have the “Save as file” button checked and click “Go”. You will be prompted to save your database to your computer. Put it in a safe place with your home directory backup.

FIG 1: phpMyAdmin, important areas circled in Red.
Setting Up The New Hosting and Installing A Fresh Copy Of Wordpress
3. Set Up The New Hosting Account / Area.
I already owned a fantastic Reseller account from Hostgator, whom I highly recommend. So I set up a new account for http://realbloggingtips.com and pointed the name servers to the nameservers provided when I set up the hosting.
4. Install Wordpress Via Cpanel.
One of the great thing about cpanel is Fantastico Deluxe. You will see the icon on your cpanel dashboard. Click that icon and you have access to push button installation of a great range of scripts. In this case install Wordpress. Just click the icon and fil in the details. Don’t worry about any of the user names or anything as these will be reverting back to your original user and password once we have the move complete.
Moving The Files And Database Over To The New Domain Hosting And Resolving Database Issues.
5. Move the files Over.
Open the ftp to your new Hosting. I use a program called Filezilla for ftp. You will see the files that have been installed with the wordpress install in the home directory. Open your home directory backup and find the “wp-content” folder. Copy this folder over to the hosting account and overwrite the one that fantastico installed, your wordpress themes, plugins and upload images are now in place.
Also find any non wordpress files in your home directory backup and copy them onto the new hosting. Make sure they go into the same place that they were in on the old hosting. By non wordpress files I mean things like addtional banner images, stored files and ebooks you provide for download etc etc.
6. Reinstate the Database.
When Fantastico installed Wordpress on the new hosting it already created a new database for you. All we have to do now is put the information from the old database into this.
(See Fig 1 for visual reference) Login to the new hostings PHP My Admin. Click on the wordpress database on the left. At the bottom of the main window select “Check All”, then select “Drop” from the drop down menu. This will empty the database. Now Click the “Import” tab at the top of the main window. Import your saved database from the old hosting.
7. Fix URL Issues In The Database.
This is the important part about moving to a new Domain name. The old database currently references the old domain name so we have to do some MySQL wizardry to make this all point to the new domain. This bit looks difficult But I will try and explain it as easy as possible.
This trick came from an excellent post over at My Digital Life
The lines of code below are MySQL commands which will change things thrings referenced througout your whole database.
To run each of these commands you need to be logged into “phpMyAdmin“. Select your wordpress database on the left and click the SQL tab in the main window. FIG 2 shows the window that you should have. These commands should be entered in the indicated area and then you just will just the Go button.

Fig 2: phpMyAdin SQL Command Area
This first command tells the database to update the wordpress blog with the new URL. Ok, so run the first command making sure that you replace the domains with the relevent old and new info from your domains. Make sure you get the www’s right (if you use them or not).
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';
This second command resoves the URLs of all your wordpress posts and pages.
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');
This third command various links that may be used around your blog in posts pages and other places controlled by the database. Run this command making sure you replace the old and new domain parts:
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');
Now the blog should be all moved over and working well. Just take a look through and then login to wordpress (your old login details will be reinstated again now) to check everything out. Sometimes you may need to reset the permalinks to deafult and then back to the pretty URLs.
If anything isn’t working right. Drop the entries from the database and reimport the backup.
301 Redirecting The Old Domains.
8. Setting Up A Redirect.
Luckily my domains were hosted with GoDaddy. Most good hosts these days will provide domain level 301 redirecting within their domain managment. 301 redirecting basically tells Google and other search engines that the blog and all posts/pages have been permantly moved to a new location. This should pass on most link juice and hopefully hold your Page Rank and link numbers. Plus all your old readers will find their way to your new domain. My Page Rank has actually dropped from 3 to 2 since the domain move. Below is a screen shot of the Godaddy 301 redirecting area.

Feedburner, Mailinglists and Other Issues.
Sadly Feedburner lets you change the URL that it gets the extension name of the Feed from but not the name of the feed itself. So sadly my feed still says Big Ben Patton’s Blog…. I am trying thinnk of a fix for this! The URL Can be changed by looging into your feedburner account, selecting the feed and then going to Edit Feed Details.
IF you have a mailing list. Depending on the software, login and change any settings that are needed. It may also be wise to inform the readers of the domain shift.
Update all your social bookmarking links…. I still have not done this.
Then one of the final steps is making sure that you update the graphics and theme. Again, I am trying to find the time to sit down and create a perfect resdesign for this place.
That’s just about it. It seems like a lot but that is because I wanted to be detailed. If you are careful and keep backups the whole process is easy.
Any questions fire away. Thanks for reading…. The next post will be a little lighter reading
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=579708ef-2887-4476-a53e-537c70e82a5d)



Sweet writeup! 1 week to late for me but yea :p
One thing to keep in mind is that (in my case) the posts table was HUGE and was not importing correctly to hostgator (timing out)though the error kept saying Bad Behaviour table was at fault….
My point being sometimes importing may fail if you have a large DB, if this is the case you may have to do the large tables separately as due to the nature of importing (multiple tables get processed at one time) it may be hard to identify the problem table.
Hey Donace,
You must have had a huge blog…. I have only encountered and error like tis the first time I moved a blog. The Database was over 70mb and it was for a client!
Just a note to everyone….. If anybody has trouble with this then please let me know and I will help you out with copying and moving parts of the database separately.
Thanks Donace.
Nah the DB was for The Nexus was about 20mb raw. Might have just been a time-out thing.
Did you just have the two windows open (old DB and New DB) and just export and import the tables?
Yep! phpadmin for old host and phpadmin for new host and I had done it 00’s times before … just hiccuped this time round :p
I messed up a few databases when I first started playing with them…. and I had a bad habit of not backing up… thinking that I would remember what I changed! I have learned from *most* of my mistakes.
One Off Topic question : I installed Apache, php, My SQL and PhpMyAdmin and then drop my website database to localhost. everything is working fine but i can see images in post ( may be they are hard coded in every post) so i can’t see images in local host site.
How can i manage that?
Hey Shanker,
Thanks for coming by…. I’m a little confused but think I can help if I understand.
So you can see images when you look at your blog post in the browser? But that image is not in the corresponding folder on your server?
Am I getting the correct? If not could you give me a solid example and then we can work out what is wrong.
I have Installed my site at LocalHost and imported database of my remote site into “local” PhpMyAdmin database.
The LocalHost site is working fine except that i can’t see images in the post. Images on Site on LocalHost look for remote URL.
If i copy the upload folder also in my LocalHost site folder and changed the path in local database, even then it dose not seems to be working.
Hope you understand what i mean to say.
Have you tried running the thrid SQL command from this blog post? That should sort out image paths.
Other things to try. Try setting the permissions on the upload folder to 777. It could be that the permissions are not allowing the folder to be read.
When you right click where an image should be in your blog, is it still pointing to your old domain.
…If you send me the link to forest.parks@gmail.com I will take a quick look and see if I can help further.
Hey Shanker did you get it fixed?
thanks you to share this tip.it’s very useful for me to back up and more.
No problem, thanks for reading.
No problem.. thanks for reading.
Wow Forest you have really brought the site a long way! When Ben first introduced the new title I thought he might want to just keep it, but from these posts the title really makes sense.
Pretty detailed for moving domains, I don’t have to use it yet, but I will know where to refer if I do!
Thanks Nathaniel, that means a lot to me. I am working hard on this blog. I know I am not throwing out tons of content but I am trying to make sure that I keep the quality up….. it’s hard with the gazillion other projects that I always have going on
I remember moving my site to a new domain..and I–dare I say, clenched my cheeks in fear of losing all the work I had previously done..luckily it was a smooth process..
Looking forward to seeing the new look soon..
Thanks Melody…. I am still trying to decide what to do with the new look. Not sure if I should get a new theme or mod this one…. It always takes me ages to get the right thing for my own projects!
PS: Your avatar pic looks really cool.
Its a tough process really, but the way you have explained is simply commendable. I am very much impressed.
Thanks again Door Knocker.
I agree this one is really going to be tough and if not for guides like this, I’m surely lost in transition when doing techy things..
Thanks Melvin, if and when you have to do it, just get in touch with me if you have any problems.
Another beneficial side-effect of moving domain is SEO benefit achieved due to 301 redirect which essentially removes the sandbox effect by Google on the new domain.
i have tested with 301 redirects and it prevents my new site from getting into sandbox.what’s your experience about this?
BTW i like your guide on transfering blog.
thanks
Sure Google recognised that the content from Big Ben Patton’s blog was here on the new domain and has fed through all the link juice here.
It’s a good deal all round.
Is it worth it maintaining that kind of a large blog when, you encountering a big error? (“,)
But great write up for your nice tips! more power…
It definitely is….. As long as you keep backups you can overcome any error and after working out the problem you will be a stronger blogger.
@Fastsize Scam – That makes sense.
I guess the search engines figure that the new domain is replacing the old one, thus keeps the trust that the old domain had built up.
Really very informative and useful tips.i want to need it for my blog.thanks to sharing it.great work dear..
Thanks again.
This is a useful post, I’ll be bookmarking this. It must’ve taken you a long time to write…so thanks!
Thanks… it took a while.. But I am a slow blogger!
Thanks for this post and i think i can putt wordpress in my sub-domain like it and i know little about CSS and wordpress.
You certainly can move it to a sub domain… Let me know if you have any issues.
Great info, thanks for sharing! If a blog is brand new there is no harm in moving it to a new domain name because you have no traffic at that point anyway.When it comes to an old established blog I would be more careful and probably not do it, you would lose a lot of traffic and your ranking would suffer from it.I would instead build a brand new blog with the new domain name.
Hey Tom,
Thanks for stopping by.
If you use the 301 redirect on the old domain then all old traffic will be redirected to the new domain and also Google will feed through the link juice.
I didn’t lose any traffic when I updated this blog.
This guide deals with that situation. It’s most likely you will just need to follow this guide and make sure you change the nameservers on the domain to that of the new host.
Thanks for sharing it!
No problem.
Hi Forrest,
This is great stuff and it may be useful to people like me whose domain name is my name. I often wondered if having my name as my domain name would hinder the eventful transfer or sale my website, if it happened. Well now I know and thanks to you.
Hey Peter, thanks for the compliment.
If you ever do plan to sell your website I would advise doing the redirect a few months before and get all the links and Google indexing moved over before putting it up for sale. Plus always be honest with the buyer and let them know there is a 301 redirect set up and things.
Thanks and looking forward to seeing you around.
great info. though i am still in blogger, i will mark this post of yours, when i move to wp so that ill have this one on my reach when the need arise
elmots last blog post..Don’t Tell Me I Don’t Value My Family!
Hey Elmot,
Blogger to wp is a little different but not too hard at all.
Let me know when you get there and I will help you out.
Hey did you get this sorted? If not let me know and I will see if I can help?
Wordpress Blog…?
I keep trying to upload a custom header image on my wordpress blog but everytime I try the to choose a file… the “choose” button ,when the page loads, appears in the correct spot for a second and then moves lower down and a grey box appears over it and I can’t click on it..what is wrong? if it helps I have a mac and use safari as my browser..
Luxury Bed´s last blog ..Indulge in luxury at Bed and Breakfast Accommodation