title: Redirect from localhost to external url
body: <p>I want to redirect a local port door to a website. So that when I access <code>https://localhost:8080</code> it actually loads (or redirects) <code>https://www.facebook.com</code>, or something like that.</p>
  
  <p>I'm on a windows machine. I already tried changing the file <code>C:\Windows\System32\drivers\etc\hosts</code> but it did not work.</p>
  
  <p>I only found solutions of the other way around. Does anyone know how to do this?</p>
  
  <p>Thanks in advance!</p>