Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rerouting urls? 1

Status
Not open for further replies.

jbkosman

Programmer
Joined
Jul 11, 2002
Messages
4
Location
CZ
Hi,

I want to reroute urls typed into ie or any other browser on my comp to another location. So that for example, if I type in:


the site will not go to the actual website ( but rather to the web server on my own computer.

(the reason i want to do this is because I'm developing a website on my own computer that relies on the url to work - meaning i have to search & replace for everytime i want to deploy.)

I know this is possible by editing some file in the winnt directory, but i forgot which file it is and now i'm beating my head over it.

i'm using win2000 professional.

I wouldn't mind using a 3rd party program to do this either as long as it fulfills what I described above.

Any suggestions?

Thanks in advance, regards,

jens
 
edit the hosts file in the WINNT\system32\drivers\etc folder. (well that's on NT, but you could just use the search/find on the start menu). Make sure you back it up first though!

Just use Notepad to edit the file. There is a good explanation on how to use it in the file itself.

Hope that helps
 
craigey is correct, same location in win2k.
 
Thanks.

This time I'll jot this down in my book of windows tricks. :-D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top