I have a link https://gitHub.com/path/to/file.tar.gz
I am trying to make a local link to non existent file.tar.gz. I know that I can't redirect the full path but maybe I can redirect https://github.com to localhost then I put corresponding folders to the full path. Is it possible to use /etc/hosts to achieve this and do I need extra server configurations to get the redirect recognisable in my web browser
What do I need to setup and how do I redirect https://github.com to localhost in hosts file?