|
|
Well, this is a very old and dirty trick to change 'localhost' (i.e. http://127.0.0.1/) to some other name. Many of you are aware of this trick. In Windows, go to "C:\Windows\system32\drivers\etc". You'd find a file named "hosts" (without quotes, of course). Open it with your favourite text editor. Find the lines:
127.0.0.1 localhostJust after that line, add the following line:
127.0.0.1 the_name_you_likeOf course, replace "the_name_you_like" with the name of your choice. That's it! Next time you type "the_name_you_like" in the address bar and hit enter enter, you'd be redirected to http://127.0.0.1/ How cool is that! Also if you want to run multiple domains under one machine head to this article.
Labels: Tips









127.0.0.1 localhost my_localhost_alias_here another_alias