Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$page=$ENV{'REQUEST_URI'}; if ($page =~ /a\.html/) { $p="a.shtml"; } elsif ($page =~ /b\.html/) { $p="b.shtml"; } elsif ($page =~ /c\.html/) { $p="c.shtml"; } elsif ($page =~ /d\.html/) { $p="d.shtml"; } else { print header( -Refresh => "5; URL=http://foobar.com"); if ($p) { print header; printnewsite(2, $p); } else { printnewsite(1); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Redirection Failure from SHTML
by friedo (Prior) on Feb 11, 2005 at 17:19 UTC | |
by Anonymous Monk on Feb 12, 2005 at 04:02 UTC | |
by Aristotle (Chancellor) on Feb 19, 2005 at 03:24 UTC |