Add fancy alias for your localhost or

A few student in my class ask me how to change default address for testing php script from http://localhost or into some real name like or while they offline at home and no internet connection availabe at home .

After googling for /etc/hosts equivalent finaly I got the answer, still related name :


Just doing this :

Find file named : HOSTS


C:WINDOWSsystem32driversetcjust put name you like :

I type for

here my HOST file looks like       localhost

save the file

restart my computer and next time after my computer up I can use as alternative of http://localhost or