Access site using ip/~user – Hosts file example

via forums.cpanel.net => original post link

I’m trying to preview my WP site before changing domain name servers.

Using (shared) ip/~user doesn’t work properly as the site shows plenty 404s and I cannot browse it.

I’ve read lots of threads here on this same subject; most point out the best solution is to modify the hosts file (windows in this case), but there isn’t a precise example on how to do it.