At work we have a series of aliases for websites like repositories etc. and they are used by typing something like open/repo
in the browser.
I wanted to create something like this at my private PC and found out I could add a line to /etc/hosts
file and it looks like this:
172.217.16.46 gl
Now what I would expect is to type gl
in any browser and it would redirect me to google.com, but unfortunately I get 404 errors on every browser. The only answers I found were browser specific, like this one for Chrome, where other browsers actually work as expected.
What I tried:
- I've run
ipconfig /flushdns
in cmd (on admin rights) - I put
http://
before the alias in Chrome
Note: I would like to keep all the changes locally on my machine (without changing router configuration etc.)