Mobile app version of vmapp.org
Login or Join
Jessie594

: How do you test non-live sites before switching DNS? I have a few websites that I need to move to a new server - how would I test that they work before switching DNS? What URL would I

@Jessie594

Posted in: #Apache #Dns #Server #Testing

I have a few websites that I need to move to a new server - how would I test that they work before switching DNS? What URL would I navigate to?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Jessie594

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cooney921

The easiest way is to modify your hosts file to hardcode the domain name to the new IP address temporarily. See this guide for OS-specific instructions. Don't forget to remove the entry again after you're done testing.

Alternatively, you could setup a temporary test subdomain for each site on the new server (test.example.com), set it up as an alias, and use this to test with. If you're using control panel software (like cpanel), sometimes these can automate this process, giving you a temporary URL to test with instead.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme