rockstardev
rockstardev

Reputation: 13527

Windows: How to use hosts file with path?

This works:

127.0.0.1       www.somesite.com

But not this:

127.0.0.1/somepath/www       www.mysite.com

What am I doing wrong? Is it possible to map a full path like this? If not, what is the easiest way to accomplish what I want to do here?

Upvotes: 4

Views: 5705

Answers (1)

NPE
NPE

Reputation: 500147

The simple answer is that you can't use the hosts file to redirect to specific URLs. It can only be used to map hostnames to IP addresses.

Upvotes: 5

Related Questions