When I am typing localhost
in my browser it is automatically redirecting to another site for eg google.com
. Can someone please tell me how this is happening and can I change this behaviour?
1 Answer
I have found that some browsers consider the input as a search string if they don't recognise the domain name format. This is especially common (in my experience) with local network names in Chrome.
I find that simply sticking a /
on the end of the address helps the browser decide what to do.
-
1mozilla directly adds
/
to the search string like localhost (only server names) Jul 21, 2014 at 9:54
/etc/hosts
file?