I’ve worked with several versions of WordPress, to different purposes at each time. One thing that happens often is having to move WordPress from one domain to another… It’s not enough just to copy the files to the new domain and connect the new database with the backup of the previous one.

After doing your file and database backups, and putting them on your new domain, you will need to run the queries below:

Suppose that your domain was potatoes.com and now it’s onions.com. You will have to execute what follows:

After that, your WordPress will keep working on the new domain! This method works since version 3, and at the time of writing this post, we’re on version 4.4.

Leave a Reply

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

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.