Moving Your WordPress Blog To A New Domain
Friday November 21st, 2008 by Frank • WordPress Tutorials • 8 Comments
Many blog owners are scared and hesitated to move their blog to another domain because they fear to lose their visitors, downtime and other complications. I will show you now how to get rid off this fear and how to avoid problems while you moving.
First of all, make a backup of all your data in your database and your customized themes and other files.
- On your new domain, create an
index.php, with the function header() , to let the search engine know, that something is coming soon, visit us again.<? header("HTTP/1.0 503 Service Unavailable"); header("Retry-After: 3600"); ?>
Alternatively you can use the plugin Wartungsmodus or Maintenance Mode.
From now on you can work, without to be worried about search engines, on your website. - After that, you import your data into the new database and upload all files.
- Adjust the
wp-config.phpaccordingly. Open the file in your editor and add following data:define('WP_SITEURL', 'http://www.example.com'); define('WP_HOME', 'http://www.example.com/blog');
Tip:
I suggest to this in every other blog too. You save a request to the database and it improves the performance of your installation. Please check the correct definition, even a wrong / can deny access to your blog for visitors.
After you add these definitions, don't forget to check off both fields in your settings area. See screenshot:







1. Binny V A
November 21st, 2008 at 8:06 pm
> make a backup of all your data in your database and your customized themes and other files.
Remember the uploaded files as well - I almost always forget them when backuping.
2. Wordpress: Meistkommentierte Beiträge anzeigen und Performance verbessern - Peter Kröner - Die Kunst des Machbaren
November 24th, 2008 at 10:44 am
[...] der nur zwei Extra-Zeilen in der wp-config.php benötigt. Eigentlich geht es darum, wie man mit einem Blog auf eine neue Domain umzieht, [...]
3. Susan
November 25th, 2008 at 8:55 pm
I had to use a 301 redirect for my domain and it took about an hour to get things setup, tested and working working properly. I thought it would take longer, but I was amazed it didn't.
4. kushal
November 29th, 2008 at 3:40 pm
nice article
here's the blogger alternetive
http://techtadka.net/tutorials/43-web-hosting/61-linking-blog-to-domain-name
5. Alex
December 1st, 2008 at 12:28 am
Hey Binny V A, thanks for the added tip, many people forget about it, so did we in our post
Congrats Susan, glad it worked out well.
Thanks kushal, I'm sure many Bloggers will appreciate that.
6. Craig Farrall
December 1st, 2008 at 12:12 pm
Wow, this is fantastic.
I owe you so much for this post, I am soon to be changing my blog to a new domain name, and I was just going to to have a redirect on my blog, but this way is fantastic.
I owe you one
Keep up the great stuff
7. Alex
December 2nd, 2008 at 1:28 am
No problem Craig, if we ever will meet in a bar somewhere in the world, you know who is paying the bill
8. Susan
December 2nd, 2008 at 6:11 am
I think it's great that it can be so easy to move a wordpress blog.