Ah ok I got it :)
Try:
my $tags = shift;
if ($ENV{HTTP_HOST} ne '209.61.197.20') {
return '<meta http-equiv="refresh" content="5;URL=http://www.domain.net">';
}
}
As it is an IP you may need != instead of ne
I'm still not sure that is right though.
Try:
Code:
sub { my $tags = shift;
if ($ENV{HTTP_HOST} ne '209.61.197.20') {
return '<meta http-equiv="refresh" content="5;URL=http://www.domain.net">';
}
}
As it is an IP you may need != instead of ne
I'm still not sure that is right though.