Migrating WordPress, Temporary Domains, Host File Changes and Testing Before Launch

Content Error or Suggest an Edit

Notice a grammatical error or technical inaccuracy? Let us know, we will give you credit!

Draft Warning

You’ve reached a draft 🤷‍♂️ and unfortunately, it’s a work in progress.

I posted this article Migrating to GridPane using a Temporary Domain on the Self Managed WordPress Facebook group. And I received the following comment.

I thought I would write something up to explain why I don’t edit my host file anymore since I started back in 2001.

Host Files

If you’ve ever wanted to migrate a website to a new hosting provider, it can be troublesome if there’s no temporary domain provided.

A temporary domain points to your new hosting account, you can have multiple domains point to your hosting account. Whatever content is in your hosting account, all the domain names will point to said content.


cPanel provides the option of a sub-domain or addon-domain that will point to your website’s webroot, which can also be considered a

However, when you’re using WordPress, it requires that you have a primary domain specified in its configuration. This is typically done via two options., otherwise you will be unable to login to the administration.


If this wasn’t a requirement, there would be no issues



You May Also Like
Read More

Cyberpanel Cheatsheet

Introduction This post is basically an ongoing cheatsheet for Cyberpanel! General Administration Accessing CyberPanel Admin You can access…