After migrating the website to new server, we need to make sure that everything working fine. Preview website before DNS update. Once you update the DNS, website will start serving from the new server.
Here is the tricks to preview website before DNS update.
Step 1 : Modify hosts file
You must received information about your new server’s login information including server IP address.
Add the IP address pointing to your website.
Open “C:\Windows\System32\drivers\etc\hosts” file with administrator’s privilege.
Add a line similar like
188.8.131.52 example.com www.example.com
It looks like
Linux and Mac users, edit “/etc/hosts” file.
Step 2 : Clear browser cache
Once you are done with the ‘hosts’ file, clear browser cache.
Now the website should fetch from your new server.
Kindly share your valuable feedback in the comment section.