When you want to change a new domain name for your wordpress, you may need to do these:

1. Set up the new domain name DNS to make sure it will be analyzed to the new wordpress hosting.

2. Update some necessary data in your wordpress, this is the title of this articles.

3. Setup 301 redirect for the original site, make sure it will redirect to the new one. Refer to 301 Redirect Site to Another in Apache for detailed information.

What data should be updated after changing domain name for your wordpress?

1. Login your database managment using a prefer database manager, such as phpmyadmin.

2. Backup your wordpress database at first.

3. Locate the wordpress database and ready to run:

Note: Assume you will change the www.a.com to www.zzsay.com, you should replace these two domains with your own URL.

UPDATE wp_options SET option_value = replace( option_value, 'http://www.a.com', 'http://www.zzsay.com' ) WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace( post_content, 'http://www.a.com', 'http://www.zzsay.com' ) ;
UPDATE wp_posts SET guid = replace( guid, 'http://www.a.com', 'http://www.zzsay.com' ) ;

4. OK, Finished.

Note:

If you find some problems with these steps, please try to let me know with a comment.