Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.