A
A
AlexVrag2011-06-09 13:07:21
Web development
AlexVrag, 2011-06-09 13:07:21

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

7 answer(s)
S
Shedal, 2011-06-09
@Shedal

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.

M
Mikhail Lyalin, 2011-06-09
@mr_jok

What is the end goal? Maybe a local HTTP server like Denver would suffice ?

A
AlexVrag, 2011-06-10
@AlexVrag

This file is designed to translate domain names into ip addresses.
You can't do a redirect with it.

H
herfleisch, 2011-06-09
@herfleisch

Try to share the folder and redirect to \\localhost\SHARED_FOLDER\index.html.

J
Juggler, 2011-06-09
@Juggler

Try redirecting to file://[path]/filename.html

H
Homakov, 2011-06-09
@Homakov

now

A
Andrew1000000, 2011-06-10
@Andrew1000000

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 question

Ask a Question

731 491 924 answers to any question