Answer the question
In order to leave comments, you need to log in
How to redirect to local html file in hosts?
How to redirect to local html file in hosts?
Answer the question
In order to leave comments, you need to log in
The redirect goes from the domain name to the IP address. This time.
Once the browser knows the IP address corresponding to the localhost domain name (or whatever you redirect), it will access that IP address on port 80 using the HTTP protocol. Therefore, you cannot do without an HTTP server.
What is the end goal? Maybe a local HTTP server like Denver would suffice ?
This file is designed to translate domain names into ip addresses.
You can't do a redirect with it.
Try to share the folder and redirect to \\localhost\SHARED_FOLDER\index.html.
Here is how to write a simple server in c#. Just what suits you.
habrahabr.ru/blogs/net/120157/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question