I am using raspbian and I know how to change the name of my server
but I must still go to http://192.168.222.142/index.php to go to my homepage of my raspberry
Is it possible to make there something like this http://rap/index.php
You can do that by running a DNS on your network or by adding a line to c:\windows\system32\drivers\etc\hosts on every machine that wants to use tat odd name.
but is it also possible to change it to http://rap.l/