All pastes #425643 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-05 16:42 UTC
rendered paste body
 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//;