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. (https://filezilla-project.org/)
  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, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';

That’s it!

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s