I want to redirect all my browser request to abc.com when a request is sent to xyz.com
I was able to do this by adding an entry in the hosts file under windows.
However I see that i can go to http://abc.com when i type in http://xyz.com:8080
but I cannot seem to get the same redirection over https.
I found out that you cannot mention ports in the host file.
Need some help on this
That’s not what the hosts file is for. It’s about the hosts that you are referring to.
abc.comandxyz.comare hosts.All the hosts file does is associate a host name with an IP address. Nothing else is possible.