In simple HowTo i show you how i migrate one WordPress website from one domain to another.
I got this website: CSSBloom.com, i migrate it to new domain name CSSBloom.net and it works good.
1. First of all i create empty WordPress install at CSSBloom.net, put there simple empty WordPress blog with working mysql base.
2. Move (copy) all files from .com to .net directory. Compare if everything is ok (use Linux and diff command to compare that).
3. Export old database, open it with Notepad++ and replace all cssbloom.com with new cssbloom.net.
Save it and import to new cssbloom.net empty database. Go to cssbloom.net folder on server and point wp-cofig.php to new imported mysql base.
4. Go to .net wordpress site, log in and change:
WordPress address (URL): to .net
Blog address (URL): to .net
5. Redirect domain .com to .net
Go to $HOME/.htaccess, edit it and add:
RewriteEngine on
RewriteCond %{HTTP_HOST} cssbloom.com
RewriteRule ^(.*) http://www.cssbloom.net/$1 [R]
And it works, check this out: www.CSSBloom.com & www.CSSBloom.net !
If you enjoyed this post, make sure you subscribe to my RSS feed!
Share on Twitter



Somehow i’m just about to do this next week. Thanks for the tips.
No problem, just done it today and as you see it works. Simple, fast and 100% good.
I just figure it out that you even don’t need to setup blank wordpress install in first place, just copy files, change sql base info to new imported base and you got the same WordPress version running with new domain name.
Good luck !
Thanks - I’ve been holding off for fear I’ll ruin my search engine rankings - cool.
Great article. I had many issues with that some time ago, too bad I didn’t found your article before!
@jbl nice to hear good words
i think i will migrate my friend website to my server, it will be a big migration (the site is big) and after that i try to find some time to write another post with howto migrate wordpress site from one hosting to another
This is helpful. I know someone who’s been changing domains like crazy. I’ll send this to him.
I wish there’s an easier way to do this. I hope you can make your tips simpler… one that could be understood by non-techies like me.
I thought it was simple, if you can ask somebody to do this for you it would be better because if something is going to break your sites will be offline.
Great article. Subscribe your rss!!
For the .com redirect, you can always use a 301 redirect as well in the header if you’re not sure on htaccess files.
I created a new .wordpress account, but I want to own my own domain so I can have more control and also improve my blogging skils. Is there any article here that can guide me in setting up my own?
@office space I am sure there are many of them, just type this in Google and read..
Hi Peter, thanks. I read a very good post about setting up an independent blog,I will be sending a link when I set up it so you can help do a review of my site.
Thanks for the steps.
Sounds easy when you show it :-p