Moving a WordPress website

I have moved several WordPress websites and this is my roadmap for it.

  1. Download Files from “old” WordPress website by FTP. (
  2. Download Database .sql “old” WordPress website.
  3. Make sure you have a new empty server package.
  4. Upload FTP files “old” WordPress website to “new” WordPress website except config.php.
  5. Import Database .sql file from “old” WordPress website to database “new” WordPress website.
  6. Connect config.php file to “new” database.
  7. Run the following SQL query on the database of “new” WordPress website for changing the Site / Home URL:
    UPDATE wp_options SET option_value = replace(option_value, '', '') WHERE option_name = 'home' OR option_name = 'siteurl';

That’s it!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s