I would like to be able to plug in http://someword.unhero.com into my domains and have the regular indexpage still come up so that I can use to extract the words into variables. Like http://stuart.elderrr.unhero.com takes me to index.php and I can then access those parts as variables. Where do I do this? $victim = $ENV{"HTTP_HOST"}; $victim =~ s/\.unhero\.com//; $victim =~ s/unhero\.com//; $victim =~ s/\.unhero\.com//; $victim =~ s/unhero\.com//; $victim =~ s/www//;