For example url: www.john.com/data.txt
I can edit /etc/hosts to point www.john.com to my server's ip address let's say www.mike.com
so when edited www.john.com/data.txt will be pointed to www.mike.com/data.txt
However I want only point the absolute path. So if user enter the http://www.john.com/readme.txt it should NOT be pointed to my server.
how can I achieve that?