Host Files

Bob Norris

Beta member
Messages
2
Anybody know how to add a sub directory to a host file?? like: 127.0.0.1/myfolder/withmypageinit


Thank you in advance
 
Erm, do you mean create a directory?

If so, do it in your ftp client (see the help file if you need to know how)
 
Same

No,,

A host file is used to steer a domain to a web page stored locally on a computer. It is usefull if you run a server on your network where have to get it locally.
So what I need to know is how can you add a subdirectory to the code.
Example:

127.0.0.1 www.mysite.com

If you type in www.mysite.com and you have a server running on your computer it will go directly to the server. So heres what im asking;

Web pags is in sub folder in directory:

127.0.0.1/webpage www.mysite.com


How can I add a sub to the 127.0.0.1 ????
 
you can't add a sub directory to your host file...
you cuold look at if from another way though... add a subdomain...

so
127.0.0.1 http://www.mysite.com
127.0.0.1 http://test.mysite.com


The either use a virtual directory config if you use apache or IIS to redirect the requests based on the broswer URL into the correct folder.
 
Back
Top Bottom