How do I redirect a URL to another URL in the hosts file, rather than redirecting an IP to a URL?
views:
107answers:
1
Q:
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
2010-07-19 21:32:14