Moving a wordpress.org website to another domain name?

Here is my solution.

First download this file.

Then follow these steps.

In shortly

  1. Backup/download your database.
  2. Upload it to your new site.
  3. Copy all wordpress folder including wp-admin,wp-content etc from
    your old site to new one.
  4. Edit the downloaded php file, change the password. you need to
    change the password in this line. define(‘DDWPDC_PASSWORD’,
    ‘Replace-This-Password’);
  5. Now place the downloaded php file in the root directory of your NEW
    site.
  6. http://www.yourNewDomain.com/wp-change-domain.php
  7. Enter the password you entered in step 4.
  8. Now you can see a form filled with your old db values. Just change
    the details. Thats it. You are done.

PS: I have included the screenshot of how value appears in the form

enter image description here