title: Editing hosts file to redirect url?
body: <p>I know you can edit a hosts file to redirect a URL to an IP address as so:</p>
  
  <p>127.0.0.1 google.com</p>
  
  <p>but how do you force a redirect to a URL instead of an IP address? </p>
  
  <p>e.g.</p>
  
  <p>mysite.com/welcome.aspx google.com</p>
  
  <p>The explicit URL doesn't work and assuming mysite.com's IP is 222.222.222.222, the following doesn't work either:</p>
  
  <p>222.222.222.222/welcome.aspx google.com</p>