hosts file does not support url to url syntax, only url to ip.
Setup local web server (Apache would be fine).
Use host file to point URL to local IP.
You can also go one step further to install PHP and redirect URL using index.php.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
2 years ago