tags:

views:

107

answers:

1

How do I redirect a URL to another URL in the hosts file, rather than redirecting an IP to a URL?

A: 

You can't. DNS (or the host files) lets you look up IP addresses for a given host name. There is no concept of remapping URLs at this level of networking. This needs to be done in your web server configuration.

Jim Lewis