Moving WordPress to a New URL or Domain

This is for those who are changing the url of their website, whether moving it to a new host or not. Let me give you an example, I have a blog called HomeGrownLifeStyle.  The url for it is .  I also own the domain name.  At some point in time I may decide to split it off as its own separate site.  This is how I would make that change.

Maybe you have a test site for your main site.  This test sandbox is where you created a new site for your main domain.  Once it is ready, you replace the current site, with this new wordpress site.  This tutorial will apply in that case too.

Wordpress general settings

Three choices depending on what you are doing with your databases, you will do one of these steps.  This is important so your url’s work instead of redirecting you to the old site:

  • If you aren’t using the same database on the new site, you will need to export a copy of your database and import that data to the new one.   Just before exporting, change the wordpress address and site addressurl’s under general settings to the new ones. You will also need to edit your wp-config.php file to connect to the new database.
  • If you are staying on the same webhost and using your existing database, go into your general settings and change the wordpress and site urls to the new ones right before the move.
  • If you are creating a new database, but also keeping the old database, possibly a sandbox to test changes to the site, you will need to change the url’s inside the new database.  You can do this within phpMyAdmin.

These next steps are much the same as in the previous post.  See Moving WordPress to New Host

Copy and move your WordPress files to your new location. 

If there is an index.html file in the new location, remove it.

If you created a new database, edit your wp-config.php file.

If you are choosing a new domain, make sure that domain name is pointing to your current webhost (server).

Reminder: See Moving WordPress to a New Host for directions on these steps.  It is basically the same process.

More “How to Move WordPress” Articles:

Please support WordPress 101 for Boomers by tweeting, liking, +1, sharing etc. this post using the buttons above.

Comments are always welcome.

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge